|Configure Dali Entitty Generator to create all @column annotations [message #830174]
||Tue, 27 March 2012 09:41
| Colin Brown
Registered: December 2011
I need to create JPA Entities for a large number of tables from a legacy database.|
Is there a way to get the Dali Entity generator to generate all of the @column annotation attributes? At present, it's only creating the length attribute for varchar fields
Ideally, I would like it to generate the complete definition, something like:
@Column(length=35, name="address1", columnDefinition="xxx" ...)
and also the scale & precision for numeric fields.
The idea behind this is that this will give the ability to use the attributes at runtime for automatic data input validation, and even generation of data entry forms.
I could write the code to do this myself, but Dali presumably has all this information when it reads the table definition during entity creation and it makes sense to include the information with the application code.
[Updated on: Tue, 27 March 2012 10:23]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02335 seconds