• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

EJB's stored in incorrect order

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I am trying to figure out a problem with my JBoss installation. I have a number of 1-M relationships defined and when I try to create data that contains a foreign key, I always get errors like this:




I am using a third-party code generator that creates the deployement descriptors and all that stuff for me. I'm thinking that the problem lies somewhere there but I can't see what it is.

The symptom I am seeing is that the child elements are saved before the parent element. Since the constraints are defined on the database server (and I am not at liberty to remove them) it complains because the foreign key of the child points to a as yet) non-existent parent. I don't understand what determines the storage order so I'm not sure what to change to make the parent be stored befor the child(ren).

Can anyone help?

Thanks,

L
 
L Duperval
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Oh yes, the database server is SQL Server 2000 on Windows XP.

Thanks,

L
 
If we don't do the shopping, we won't have anything for dinner. And I've invited this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic