Bugs item #527376, was opened at 2002-03-08 14:29
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=402704&aid=527376&group_id=31602
Category: ejbdoclet
Group: v1.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Adrian Woodhead (massdosage)
Assigned to: Nobody/Anonymous (nobody)
Summary: orion persistence-name faulty for PK
Initial Comment:
I have created a CMP EJB for a pre-existing DB and
need to map the EJB variables to column names. I have
done this using:
@orion:persistence persistence-name="colName"
And this works fine for all columns EXCEPT a single
primary column that I have (called "id"). This should
map to a column in the DB called "QUESTION_Id"
So, the declaration in my bean is as follows:
/**
* @ejb:interface-method
* @ejb:persistent-field
* @ejb:pk-field
*
* @orion:persistence persistence-
name="QUESTION_Id"
*/
public abstract int getId();
The generated orion-ejb-jar.xml gets the following
fragment:
<cmp-field-mapping>
<fields>
<cmp-field-mapping name="id" persistence-name="id" />
</fields>
</cmp-field-mapping>
which clearly has the wrong persistence-name value in
it.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=402704&aid=527376&group_id=31602
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel