facebook

Relationship NOT marked cascade PERSIST

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #281899 Reply

    Russ
    Member

    I have created a SQLServer2005 database. I have used MyEclipse to reverse engineer the Entity beans. In several cases I changed the relationships from one-to-many to one-to-one. I have spent a day combing through the entity beans I created ensuring I have the relationships identified correctly. I have ran the annotations through the Sun App Server verifier utility. The application deploys to Glassfish, however, when I run the application, it is throwing an error

    
    java.lang.IllegalStateException: During synchronization a new object was found through a relationship that was not marked cascade PERSIST: com.cm.ejb.bean.entity.ItemPart@1f40964.
    at oracle.toplink.essentials.internal.ejb.cmp3.base.RepeatableWriteUnitOfWork$1.iterate(RepeatableWriteUnitOfWork.java:140)
    

    I have tried to trim back the relations where possible so it would be easy to follow. Any suggestions would be greated appreciated.

    Russ

    #281908 Reply

    Loyal Water
    Member

    Russ,
    I would suggest you cross post on the Java forums as well.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Relationship NOT marked cascade PERSIST

You must be logged in to post in the forum log in