1 posts in topic
Flat View  Flat View

Posted By:   Magnus_Poromaa
Posted On:   Monday, May 5, 2003 01:36 AM


Im using mysql and auto_increment on a column.

Which tags should I use from xdoclet so that it will

give the entity bean that incremented value as a

primary key?

Im using jboss and mysql but I cant seem to find any

examples on that.



Re: auto_increment

Posted By:   Javed_Mandary  
Posted On:   Monday, May 5, 2003 08:24 AM

This is what i did, Say i want to autonumber employee_id in each time i add a new employee record in my database .I used a session bean to read the number of records in my database (return a collection) , find position of the last record and increment it. This is an easy way round it.

Javed www.baadaal.tk

About | Sitemap | Contact