[
http://opensource.atlassian.com/projects/hibernate/browse/ANN-533?page=all ]
Emmanuel Bernard resolved ANN-533:
----------------------------------
Resolution: Rejected
Assign To: Emmanuel Bernard
What you ask is not possible, oid is really defined in the superclass.
The way people seems to solve your problem is to map things like that (haven't tried
myself)
@MappedSuperclass
public static class AbstractSuperclass {
@Id
@GenericGenerator(name = "generator", strategy = "increment")
@GeneratedValue(generator = "generator")
long oid;
}
@Entity
@GenericGenerator(name = "generator", strategy = "assigned")
public static class Implementation1 extends AbstractSuperclass {
}
@Entity
public static class Implementation2 extends AbstractSuperclass {
}
Id Attribute override did not work through xml
----------------------------------------------
Key: ANN-533
URL:
http://opensource.atlassian.com/projects/hibernate/browse/ANN-533
Project: Hibernate Annotations
Type: Bug
Versions: 3.2.1
Reporter: Armin Haaf
Assignee: Emmanuel Bernard
Attachments: TestOverrideIdGenerator.java, TestOverrideIdGenerator.java
It is not possible to override the id generator with xml. Please look at the attached
code
--
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