--- "Reeves, Paul" <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> We have a number of database tables where the
> primary key is a compound
> primary key.
> 
> This in itself is not a problem (as we always use a
> EntityNamePK class for
> the primary key).
> 
> What is a problem is that none of these columns are
> @ejb.persistence columns
> - they are all themselves foreign keys ie
> @ejb.relations
> 
> How can we tag this in XDoclet? because XDoclet
> complains if we use
> @ejb.pk-field without using @ejb.persistence
> 
> (and we can't use @ejb.persistence with the
> @ejb.relation tag!!!!)

At least JBoss has problems with CMR fields ( your FK
)
being also CMP fields. Not sure for other app servers.

Maybe you shall look at some O/R mapping tool
as your persistenze layer - like Hibernate, and
throw aaway your entity beans. 

I'm playing with it right now and it looks awesome
( and I'm developing xdoclet support for it )

gr�� aus Wiesbaden,

=====
Konstantin Priblouda ( ko5tik )    Freelance Software developer
< http://www.pribluda.de > < play java games -> http://www.yook.de >
< render charts online -> http://www.pribluda.de/povray/ >

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


-------------------------------------------------------
This SF.NET email is sponsored by:  The Best Geek Holiday Gifts!
Time is running out!  Thinkgeek.com has the coolest gifts for
your favorite geek.   Let your fingers do the typing.   Visit Now.
T H I N K G E E K . C O M        http://www.thinkgeek.com/sf/
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to