My Shitty Code

Embracing the Messiness in Search of Epic Solutions

Tag: Websphere Application Server

  • java.lang.NoSuchMethodError: javax/persistence/OneToMany.orphanRemoval()Z

    PROBLEM You configure Hibernate using annotations and set orphanRemoval property in @OneToMany. When you run the application, the application server throws the following exception:- In my case, I’m getting this exception when I run on Websphere Application Server (WAS) 7.5. SOLUTION The orphanRemoval property in @OneToMany requires JPA 2.x to work. If you already have […]