Guys, I have to admit I was wrong...

  It's not that case I cited as an example. In my example the whole table is
dedicated to handle relationships but in the forum's example the table
contains other data too and is considered as a bean. It seems, it's not
possible for now with JBoss.

  Sorry, guys. SORRY, MARIUS.

alex

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> Alex Loubyansky
> Sent: Monday, April 29, 2002 11:24 AM
> To: 'Marius Kotsbak'
> Cc: 'Ingo Bruell'; 'xdoclet-user'
> Subject: RE: [Xdoclet-user] value-objects wrong PK usage
>
>
>   Don't have such a problem if I understand it correctly. I use
> jboss-3.1.0alpha and complex primary keys.
>
>   I've just modified some of my beans to test: CategoryEJB -
> ResourceEJB
> relationship. CategoryPK consists of 'categoryId' and 'name' (just for
> example) and ResourcePK - resourceId. Works fine. Here is the
> excerpt from
> the log (corresponding to the link you sent):
>
> 2002-04-29 11:11:35,642 DEBUG
> [org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.Category]
> Executing SQL:
> CREATE TABLE category_resource (name VARCHAR(255) BINARY NOT
> NULL, category
> VARCHAR(32) NOT NULL, resource VARCHAR(32) NOT NULL, CONSTRAINT
> pk_category_resource PRIMARY KEY (name, category, resource))
>
>   Don't offend JBoss :)
>
> alex
>
> > -----Original Message-----
> > From: Marius Kotsbak [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, April 26, 2002 11:34 PM
> > To: [EMAIL PROTECTED]
> > Cc: 'Ingo Bruell'; 'xdoclet-user'
> > Subject: Re: [Xdoclet-user] value-objects wrong PK usage
> >
> >
> > Alex Loubyansky wrote:
> >
> > >  What do you mean "complex PKs don't work very well with
> > jboss3.x now"?
> > >
> > http://main.jboss.org/forums/thread.jsp?forum=46&thread=9931
> >
> > So i stopped using it. I don't know if it is just the table-creating
> > problem.
> >
> > >
> > >alex
> > >
> > >
> > >
> > >>-----Original Message-----
> > >>From: [EMAIL PROTECTED]
> > >>[mailto:[EMAIL PROTECTED]]On Behalf Of
> > >>Marius Kotsbak
> > >>Sent: Friday, April 26, 2002 5:32 PM
> > >>To: Ingo Bruell
> > >>Cc: xdoclet-user
> > >>Subject: Re: [Xdoclet-user] value-objects wrong PK usage
> > >>
> > >>
> > >>I have also seen this. Have also reported it as a bug, but I
> > >>don't think
> > >>  anyone has commented it.
> > >>
> > >>Another thing to remember is that complex PKs does't work
> > >>very well with
> > >>jboss 3.x now, if you use it.
> > >>
> > >>
> > >>Ingo Bruell wrote:
> > >>
> > >>
> > >>>Hi,
> > >>>
> > >>>i am using now value-objects, to get my non persistent
> > >>>
> > >>>
> > >>attributes into a
> > >>
> > >>
> > >>>"DataObject". Most auf my beans
> > >>>have komplex Primary Keys, that means that they are
> > >>>
> > >>>
> > >>composed with two or
> > >>
> > >>
> > >>>more attributes.
> > >>>
> > >>>In a ValueObject a PrimaryKey is only created withe the
> > >>>
> > >>>
> > >>last PrimaryKey
> > >>
> > >>
> > >>>attribute and so it could
> > >>>not be compiled.
> > >>>
> > >>>Now it generates:
> > >>>   pk = new
> > >>>de.oblgmbh.jbvs.meta.interfaces.VersicherungPK(this.getNummer());
> > >>>
> > >>>but it should be
> > >>>   pk = new
> > >>>de.oblgmbh.jbvs.meta.interfaces.VersicherungPK(this.getMandant(),
> > >>>this.getNummer());
> > >>>
> > >>>is there a way to avoid using of PK in ValueObjects ?
> > >>>
> > >>>Ingo Bruell
> > >>>
> > >>>---
> > >>><[EMAIL PROTECTED]>
> > >>><ICQ# 40377720>
> > >>>Oldenburg PGP-Fingerprint: 9DD0 1776 DF4D 5B16 A532 C2A1
> 4701 EEA2
> > >>>Germany PGP-Public-Key available at pgpkeys.mit.edu
> > >>>
> > >>>
> > >>>
> > >>>_______________________________________________
> > >>>Xdoclet-user mailing list
> > >>>[EMAIL PROTECTED]
> > >>>https://lists.sourceforge.net/lists/listinfo/xdoclet-user
> > >>>
> > >>>
> > >>
> > >>_______________________________________________
> > >>Xdoclet-user mailing list
> > >>[EMAIL PROTECTED]
> > >>https://lists.sourceforge.net/lists/listinfo/xdoclet-user
> > >>
> > >>
> > >
> > >_______________________________________________
> > >Xdoclet-user mailing list
> > >[EMAIL PROTECTED]
> > >https://lists.sourceforge.net/lists/listinfo/xdoclet-user
> > >
> > >
> >
> >
>
>
> _______________________________________________
> Xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user


_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to