Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [dali-dev] Generation of annotated java types

Title: Generation of annotated java types
Hi,

We currently don't support the generation of the @Lob annotation in our 0.5 entity generation, but this would probably be a reasonable enhancement to make in a future release.  Ideally you would submit an enhancement request (and even better provide a patch with the functionality) and we would try to include this functionality into the 1.0 release.

The only way this could be achieved now (with 0.5) would be to subclass the EntityGenerator class and add this functionality in yourself.  I think it should be possible to do what you want to do.  Take a look at the EntityGenerator class and let me know if you need further assistance.

Neil

Dimitrov, Dimiter wrote:

Hello,

I have a question about the generation of persistence entities from an existing data base table (the vendor is arbitrary one). I have a column which type is LONG. So my question is whether is possible to manipulate generation of persistence entity in this way that the generated java type to be annotated? Especially I’m interesting for this scenario: I have a column with LONG BYTE type in the DB table. I want to map this column to byte [] field in the generated persistence entity (and I did it successfully via XMI file description), but I need to annotate that the type in the DB is LONG (with @Lob annotation of the relevant field in the generated java persistence class). Is this possible and how I could do it?

Thank you in advance
Best Regards,
Dimiter


_______________________________________________ dali-dev mailing list dali-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/dali-dev

Back to the top