Hi,

Looking into this it appears that WebLogic provides workaround support for
this and that
JBoss 4 will do as well. Therefore, if WebLogic currently support this then
it should be possible
using XDoclet ???? Is it? If not, will it be??

Many thanks,
Paul

> -----Original Message-----
> From: Konstantin Priblouda [mailto:[EMAIL PROTECTED]]
> Sent: 20 December 2002 12:44
> To: Reeves, Paul
> Subject: RE: [Xdoclet-user] Database Compound Primary Key Issue
> 
> 
> 
> --- "Reeves, Paul" <[EMAIL PROTECTED]> wrote:
> > Hi,
> > 
> > I saw something on a forum about the same issue, in
> > a nutshell they say that
> > it *will* work if Object is used as the primary key
> > type. Is this
> > information incorrect?
> > 
> > To use undefined primary keys, the bean class and
> > it's interfaces use the
> > Object type to identify the primary key. The
> > ejbCreate method could be:
> > 
> > public abstract class MyEntityBean extends
> > javax.ejb.EntityBean {
> > public Object ejbCreate (String oneFK, String twoFK,
> > String threeFK) {
> > ....
> >    return null;
> > }
> > }
> > 
> > The findByPrimaryKey() method defined int he local
> > and remote home
> > interfaces must also use an Object type:
> > public interface MyEntityBeanHome extends
> > javax.ejb.EJBHome {
> > public MyEntityBeanLocal findByPrimaryKey (Object
> > primaryKey) throws
> > javax.ejb.FinderException;
> > }
> 
> That's a difficult question... AFAIK, EJB standart
> does
> not clerly specify this, and different app server
> use different workarounds....
> 
> I think it's time to  start thinking about BMR
> ( analogois as BMP ) - and generate persistence stuff
> with xdoclet....
> 
> It would be difficult to produce something as obscure
> as current CMR stuff...
> 
> regards,
> 
> =====
> 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
> 

Any e-mail message from the European Central Bank (ECB) is sent in good faith but 
shall neither be binding nor construed as constituting a commitment by the ECB except 
where provided for in a written agreement.
This e-mail is intended only for the use of the recipient(s) named above. Any 
unauthorised disclosure, use or dissemination, either in whole or in part, is 
prohibited.
If you have received this e-mail in error, please notify the sender immediately via 
e-mail and delete this e-mail from your system.



-------------------------------------------------------
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