Hello,
is there any way to generate code with the EJB-Cartridge (AndroMDA 3.0M1)
the support autogenerated primary keys?
Unfortunatily I'm not that familiar with the EJB-Stuff but isn't there a
JBoss feature that does exactly that? (There's an <auto-increment/> tag for
jbosscmp-jdbc.xml and an @jboss.persistence auto-increment=true XDoclet tag
which seems to provide something like that.)
How are there primary key values generated in the car rental sample? (I
haven't found that out. E.g. in CustomerServiceBeanImpl theres the method
createCustomer with
...
CustomerLocalHome clh = getCustomerLocalHome();
// TODO: omit primary key parameter in EJB cartridge template
Customer cl = clh.create(null, name, customerNo, password);
return cl.getId();
...
but I haven't found anything about the "magic" of the ID generation...
Any help would be very welcome!
Regards
Stefan
-------------------------------------------------------
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
_______________________________________________
Andromda-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-user