I have the same problem. I tried using the example, but it wasn't finding the
@GeneratedValue annotation used:
Child
| @Id @GeneratedValue(generator="fk1")
| @GenericGenerator(name="fk1", strategy="foreign")
| public Integer getId() {
| return this.id;
| }
|
Parent
| @Id(generate = GeneratorType.AUTO)
| @Column(name = "testAssignmentId", unique = true, nullable = false,
insertable = true, updatable = true)
| public Integer getId() {
| return this.Id;
| }
|
What am I doing wrong?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923974#3923974
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3923974
-------------------------------------------------------
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