I believe the problem you're experiencing is that 'abstract schema' refers
to the 'name' the EJB-QL engine will use to refer to your bean.
ie,
SELECT OBJECT(myloss) FROM TrelisStolenWrittenOff AS myloss
this tells the EJBQL engine to use com.foo.bar.TrelisItemsBean whenever it
sees 'TrelisStolenWrittenOff'
This is different than the table used to physically persist (Store/read) the
data, as defined by the table-name tag.
cheers!
----- Original Message -----
From: "Chris Doyle" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 10, 2003 1:14 AM
Subject: [Xdoclet-user] can't get @ejb.persistence to work
Hi all,
I've checked this several times but do not see to get @ejb.persistence to
work.
My understanding is that if you use @ejb.persistence table-name="blah" then
the abstract schema name should be
<abstract-schema-name>blah</abstract-schema-name>
When I try it I'm getting the bean name. Any ideas?
I'm using xdoclet1.2b2
What did I miss ?
Thanks
Code is below.
* @ejb.bean
* type="CMP"
* cmp-version="2.x"
* name="TrelisStolenWrittenOff"
* local-jndi-name="ejb.TrelisStolenWrittenOffLocalHome"
* view-type="both"
* primkey-field="trelisId"
*
* @ejb.persistence
* table-name="REVS.TRELIS_STOLEN_WRITTEN_OFF"
and a little further
* @param java.lang.String the new regNo value
* @ejb.interface-method view-type="both"
*/
public abstract void setRegNo(java.lang.String regNo);
Gives me the following ejb-jar.xml;
<cmp-version>2.x</cmp-version>
<abstract-schema-name>TrelisStolenWrittenOff</abstract-schema-name>
<cmp-field >
<description><![CDATA[Returns the regNo]]></description>
<field-name>regNo</field-name>
</cmp-field>
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
for complex code. Debugging C/C++ programs can leave you feeling lost and
disoriented. TotalView can help you find your way. Available on major UNIX
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
for complex code. Debugging C/C++ programs can leave you feeling lost and
disoriented. TotalView can help you find your way. Available on major UNIX
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user