0

We are updating weblogic12c to weblogic14c, Here we are having one super class with common fields in common jar. It will be extended by sub classed from other jars.

Super Class(common.jar)

package com.common.entity;
imports;

@MappedSuperclass
public class ConsumerBase {

  @Column(name="LAST_MODIFY_BY")
  private String lastModifiedBy;

  // Getters/setters.

}

Sub Class(consumer.jar)

package com.consumer.entity
imports;

@Entity
public class Consumer extends ConsumerBase {


  @Id
  private long id;

  @Column(name="CODE")
  private String code;

  // Getters/setters.

}

Super class is annotated with @MappedSuperClass & Sub class is annotated with @Entity. Everything is working fine in weblogic 12c(Entity Manager find, persist, merge).

During weblogic14c, Entity Manager find is not considering @MappedSuperClass fields which is placed in another jar. I have added the jars information in persistence.xml also. But @MappedSuperClass fields are treated as Transient fields.

If i placed @MappedSuperClass class in the same jar everything is fine. But system is not considering the other jar.

I have tried Access Type annotations also, still facing the same problem. Java 8 is used for compilation.

0 Answers0