[JBoss-user] [EJB 3.0] - Re: Recursive Bidirectional entity

2006-04-03 Thread oliverchua
Emmanuel, Thanks! that solved the problem View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3934311#3934311 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3934311 --- This

[JBoss-user] [EJB 3.0] - Re: Recursive Bidirectional entity

2006-03-31 Thread epbernard
Oh I found you problem, mappedBy=subUnits should be mappedBy=superUnit, you should reference the many side not something else View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3933951#3933951 Reply to the post :

[JBoss-user] [EJB 3.0] - Re: Recursive Bidirectional entity

2006-03-30 Thread epbernard
constraints does not prevent bidirectional and recursive associations View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3933908#3933908 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3933908

[JBoss-user] [EJB 3.0] - Re: Recursive Bidirectional entity

2006-03-30 Thread oliverchua
Hi Emmanuel, this is the script of the table that was created by hibernate... CREATE TABLE `intranetejb`.`unit` ( | `unitCode` bigint(20) NOT NULL auto_increment, | `unitName` varchar(255) default NULL, | `superUnitCode` bigint(20) default NULL, | PRIMARY KEY (`unitCode`), |