subclass inheritance strategy duplicate attributes
--------------------------------------------------
Key: HIB-38
URL: http://team.andromda.org:8080/jira/browse/HIB-38
Project: Hibernate Cartridge
Type: Bug
Versions: 3.0M3
Environment: windows xp pro - java 5
Reporter: Candide Kemmler
Assigned to: Martin West
when subclass inheritance strategy for an entity is chosen, its subclasses get
duplicate attributes.
e.g. in the generated code:
// --------------- super attributes ---------------------
private java.lang.String id;
/**
*
*
* @hibernate.id
* generator-class="uuid.hex"
* column="ID"
* type="java.lang.String"
*
* @hibernate.column
* name="ID"
* sql-type="VARCHAR(256)"
*/
public java.lang.String getId()
{
return this.id;
}
public void setId(java.lang.String id)
{
this.id = id;
}
// ------------- super relations ------------------
... and here it comes again:
// --------------- attributes ---------------------
private java.lang.String id;
/**
*
*
* @hibernate.id
* generator-class="uuid.hex"
* column="ID"
* type="java.lang.String"
*
* @hibernate.column
* name="ID"
* sql-type="VARCHAR(256)"
*/
public java.lang.String getId()
{
return this.id;
}
public void setId(java.lang.String id)
{
this.id = id;
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://team.andromda.org:8080/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Andromda-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-devel