This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem with em.merge  RSS feed

 
manu chaox
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have next problem:

class ProjectDaoImpl


class ProjectDaoService


class Project



class ProjectAction


I don't know why merge is functional only for adding object and not for deleting object . Do you have any idea ?

(EJB3, JBoss 4.2.2,Struts2 - I am newby in ejb 3)
 
Ankit Garg
Sheriff
Posts: 9610
37
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you properly override the equals and hashCode methods in RoleAssociation class?? I know this is a basic things, but sometimes we miss some very basic things...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!