Skip to content
This repository has been archived by the owner on Oct 28, 2019. It is now read-only.

Add blob support from JHipster. #32

Closed
MathieuAA opened this issue Jul 12, 2015 · 8 comments
Closed

Add blob support from JHipster. #32

MathieuAA opened this issue Jul 12, 2015 · 8 comments

Comments

@MathieuAA
Copy link
Member

Work to be done:

  • Add blob (byte[]);
  • Find a way to specify its content (an image or any binary) for fieldTypeBlobContent;
  • Add validations (required, minbytes and maxbytes);
  • Add the mention fieldsContainBlob;
  • Add the two mentions of the validations (fieldValidateRulesMinbytes and fieldValidateRulesMaxbytes).

That should be everything to add (not to mention the wiki).

@MathieuAA MathieuAA changed the title Add blob support for JHipster. Add blob support from JHipster. Jul 13, 2015
@MathieuAA
Copy link
Member Author

The Blob implementation is paused until it is fixed in JHipster.
The current state is available here.

We distinguish two types of "Blobs": the AnyBlob and the ImageBlob. Both are treated the same by JHipster (as they are byte arrays). One needs to create a custom DataType (or any custom Type) to use them in JHipster-UML. To create an ImageBlob, just create a DataType named ImageBlob. To create an AnyBlob, just create an AnyBlob and/or a Blob (easier...).

@andidev
Copy link
Member

andidev commented Jul 20, 2015

Great! Does it work in its current state?

By the way, by fixed you mean released?

@MathieuAA
Copy link
Member Author

I think it does. The only problem I have is that the tests from JHipster don't pass (with or without JHipster-UML, 4 tests fail).
And I've not yet done the tests for JHipster-UML.

@MathieuAA
Copy link
Member Author

The tests are done. Once everything's ok in JHipster, I will merge the blobImpl branch with master.

@andidev
Copy link
Member

andidev commented Jul 26, 2015

So the test in jhipster fail? Do you mean the maven tests?

@MathieuAA
Copy link
Member Author

Yes. The mvn test after creating an entity with a blob[] in it fails.

@andidev
Copy link
Member

andidev commented Jul 26, 2015

I cant reproduce the bug. Could you create an issue in genarator-jhipster with more details?

@MathieuAA
Copy link
Member Author

Yes, I will, here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants