Configure Dali Entitty Generator to create all @column annotations [message #830174] |
Tue, 27 March 2012 09:41 |
Colin Brown Messages: 4 Registered: December 2011 |
Junior Member |
|
|
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
e.g.
@Column(length=35)
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.
Thoughts appreciated.
Thanks
[Updated on: Tue, 27 March 2012 10:23] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03133 seconds