On Mon, 2004-07-19 at 21:42, Rafal Kedziorski wrote:
> At 15:28 19.07.2004, Nirmish R. Dholakia wrote:
> >Atleast with me it is worked and we have to define only method level tags 
> >such as..
> >
> >/**
> >         [EMAIL PROTECTED]
> >         *column-name="type"
> >*/
> 
> I mean table-name at class level.
> 
> we switched now to XDoclet 1.2.1. Why there sould be defined chema in 
> @ejb.bean and table-name in @ejb.persistence?

Because they're for different things.  The @ejb.bean schema parameter
"specifies the name of the abstract schema type of an entity bean with
cmp-version 2.x. It is used in EJB QL queries.  For example, the
abstract-schema-name for an entity bean whose local interface is
com.acme.commerce.Order might be Order." (taken from the EJB2 DD DTD)

The @ejb.persistence table-name parameter defines the name of the table
in which you're storing that entity in the database.  This may or may
not be the same.  For example, the systems I work with generally use all
upper case for the database table & column names (and the DBMS is
case-sensitive).  So, continuing the example above, I might specify the
schema as "Order" but the table-name as "ORDER".


Andrew.


>  If I remove the table-name in 
> @ejb-persistence, than XDoclet don't define table-name in jbosscmp-jdbc.xml.
> 
> 
> Regards,
> Rafal
> 
> 
> >and it is working with my project..
> >Nirmish....
> >
> >-----Original Message-----
> >From: [EMAIL PROTECTED]
> >[mailto:[EMAIL PROTECTED] Behalf Of Rafal
> >Kedziorski
> >Sent: Monday, July 19, 2004 6:44 PM
> >To: [EMAIL PROTECTED]
> >Subject: [Xdoclet-user] schama problem?!
> >
> >
> >hi,
> >
> >in the old XDocltet version we have to define two times table name (schema
> >and table-name)
> >
> >   * @ejb.bean
> >   *       name = "UserEntityBean"
> >   *       description = "User Entity Bean"
> >   *       display-name = "User Entity Bean"
> >   *       local-jndi-name = "user/UserBean"
> >   *       view-type = "local"
> >   *       type = "CMP"
> >   *       cmp-version = "2.x"
> >   *       schema = "users"
> >   *       primkey-field = "user_id"
> >   *
> >   *
> >   * @ejb.persistence
> >   *       table-name = "users"
> >
> >But in the actual production version this dasn't work, after remove
> >
> >   * @ejb.persistence
> >   *       table-name = "users"
> >
> >Ragards,
> >Rafal
> >


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to