[hibernate-issues] [Hibernate-JIRA] Created: (HBX-1018) hbm2java does not generate unique sequence generator names
Nikolai Gagov (JIRA)
noreply at atlassian.com
Tue Nov 27 04:21:57 EST 2007
hbm2java does not generate unique sequence generator names
----------------------------------------------------------
Key: HBX-1018
URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-1018
Project: Hibernate Tools
Issue Type: Bug
Components: hbm2java
Affects Versions: 3.2.cr1
Environment: Hibernate 3.2.5.ga, Oracle 10g
Reporter: Nikolai Gagov
Priority: Minor
Attachments: reveng.zip
We use hbm2java to create EJB3 from database. hbm2java generates @SequenceGenerator(name="generator", ...) @GeneratedValue(strategy=SEQUENCE, generator="generator") for all primary keys. Some persistence providers like Toplink reports this as error during validation. It could be good if hbm2java generates unique SequenceGenerator names.
For this issue I propose to implement simillar behaviour as the one for generated sequence name. In org.hibernate.tool.hbm2x.pojo.EntityPOJOClass.generateAnnIdGenerator() we could retreive the SequenceGenerator name from properties. These properties could be populated inside some predefined from user ReverseEngineeringStrategy. In it's method getTableIdentifierProperties(TableIdentifier) we could set in properties what ever we want.
--
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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list