From: Dain S. <da...@da...> - 2002-09-04 14:54:59
|
Alex Loubyansky wrote: > JBossCMP becomes cooler. Now it supports Unknown primary keys (Refer to EJB2.0 spec 10.8.3 for details). > > To make use of this feature, entity beans must have prim-key-class declared as java.lang.Object and no primkey-field in ejb-jar.xml. > To set up unknown primary key, the new optional unknown-pk element is used in jbosscmp-jdbc.xml. (See jbosscmp-jdbc_3_0.dtd for details). > If unknown-pk element is omitted in jbosscmp-jdbc.xml, the default one from standardjbosscmp-jdbc.xml will be used. > The default (and the only for now) key generator factory is > UUIDKeyGeneratorFactory. It's deployed as a service (in default and all configurations) and bound to the global JNDI context. > Other key generator factory implementations are welcome! > > The feature is available in CVS HEAD version. Alex, what would someone have to do to create their own KeyGenerator? I am sure someone will want to port the high-low generator. -- xxxxxxxxxxxxxxxxxxxxxxxx Dain Sundstrom Chief Architect JBossCMP JBoss Group, LLC xxxxxxxxxxxxxxxxxxxxxxxx |