On Tue, 2003-11-04 at 19:45, Alexey Loubyansky wrote:

> Are you saying that entity's primary key value is not stored in the 
> database?
> 

Yes. But is optional or is mandatory that the primary key of the entity
bean must be mapped on the database? Correct me if I'm wrong: It's not
necessary to the primary key of an entity bean (always required) to be
the primary key of the database table but it must be at least an
attribute in the database table that identifies it uniquely.

> > 
> > Now, I'm getting this error (I think it's a dummy one):
> 
> It looks like a many-to-many relationship. What if you try sIDId instead?
> 

Hummm... I know what you tried to say... The first letter of a setX/getX
should be translated to lowercase (~java rules). I tried and but it
didn't worked also. I verified the generated jbosscmp-jdbc.xml and the
it's really "SIDId". But I already put it all in lowercase to follow the
rules.

The problem still happens.

What should I do for the primary key? Should I add a automatic sequence
in my database (I can do it). But, what happens in the entity bean? I
only know what key is going to be generated after the creation in the
database and not before. If this has any problem about this... The
relationship is independent of the primary key, right? I can have a
relation just by name...

regards,
Pedro Salazar.
-- 
-PS



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to