[
http://opensource.atlassian.com/projects/hibernate/browse/HBX-928?page=co...
]
MG commented on HBX-928:
------------------------
For convenience to avoid writing something like new Entity(id, field1, null, null, null,
null). To avoid passing too many nulls
You might have number of fields which are used by DB for some housekeeping (ex. audit and
you do not need to initialize them normally)
ex: updatedBy,createdBy,createdTime,updatedTime,version,historyFlag etc.
I think it would be a useful feature.
Generate semi-full constructor (ommiting fields with default values)
--------------------------------------------------------------------
Key: HBX-928
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HBX-928
Project: Hibernate Tools
Issue Type: New Feature
Components: hbm2java, hbm2seam, reverse-engineer
Environment: all
Reporter: MG
Priority: Minor
In case if database table definition has default values on some fields generate
additional semi-full constructor which only includes fields which do not have default
values.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira