File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss and the fly likes Generating auto incremented field Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "Generating auto incremented field" Watch "Generating auto incremented field" New topic
Author

Generating auto incremented field

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3334

Hi all.
I have JBoss 3.2.5 and MySQL 4.0
my entity bean has an auto generated field.
I know how to create an auto generated field in MySQL but how to make this in JBoss ?
I mean, which of JBoss specific deployment files this attribute should occure ?
what is its syntax ??
another question :
this entity bean has a method called : getProcudtID( )
should I declare a cmp-field element in ejb-jar.xml file like this :
<cmp-field><filed-name>productID</field-name></cmp-field>
thanks.
 
 
subject: Generating auto incremented field
 
Threads others viewed
Can't deploy EJB to JBOSS after adding '@ejb.finder' clause
AutoIncrement primaryKey
Issue in CMR entity bean
JBOSS EJBQL generate wrong SQL
won't create tables with jaws.xml
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com