GeeCON Prague 2014*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Is table generator can shared? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Is table generator can shared?" Watch "Is table generator can shared?" New topic
Author

Is table generator can shared?

Fu Dong Jia
Ranch Hand

Joined: May 23, 2007
Posts: 131
If the different entities within the persistence unit can share the same table generator?


who dare win!<br />SCJP5(94%)|SCWCD5(86%)|SCBCD(100%)|SCEA in progress
Tomaszz Lewandowski
Ranch Hand

Joined: Sep 07, 2007
Posts: 30
Yes, the table for table generator has as many rows as the numer of entities that use it.


Regards<br />Tomasz Lewandowski<br />SCJP5 (97%) | SCWCD5 (98%)
Ralph Jaus
Ranch Hand

Joined: Apr 27, 2008
Posts: 342
I disagree with the statement
the table for table generator has as many rows as the numer of entities that use it.
The database table used for generating values has one row for each @GeneratorTable that uses it! This doesn't relate to the number of entities that use this @GeneratorTable (at least if the @GeneratorTable is used by more than one entity).
[ December 10, 2008: Message edited by: Ralph Jaus ]

SCJP 5 (98%) - SCBCD 5 (98%)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is table generator can shared?