I found a weird little thing on my JBoss4.0.3SP1 and EJB 3.0 using mySQL 4.x.

Lets say I had something like this in a bean called Order
which I by the way DOES NOT HAVE an id that is autogenerated.
and on the db I had auto_increment on OrderItems
and all is right with the world.

@OneToMany(mappedBy="order")
public Set getOrderItems() {
   ....
}

Then I decided to add a cascade ALL
@OneToMany(mappedBy="order", cascade=CascadeType.ALL)
public Set getOrderItems() {
   ....
}


The auto_increment on the next deploy chucks out the auto_increment.
Weird isn't it? has anyone seen this before?


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921383#3921383

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3921383


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to