have any one solved this,I am gettin same exception in weblogic Application @Id @Column(name = "APP_ID", nullable = false) private int appId; @Column(name = "APP_NAME", nullable = false) private String appName; @Column(name = "GROUP_ID", nullable = false) private int appGroupId; @ManyToOne(optional=false) @JoinColumn(name = "GROUP_ID",referencedColumnName="APP_GROUP") private AppGroup appGroup;
AppGroup @Id @Column(name = "APP_GROUP", nullable = false) private int groupId; @Column(name = "GROUPNAME", nullable = false) private String groupName; @OneToMany(mappedBy="appGroup",fetch=FetchType.EAGER,cascade=CascadeType.ALL) private Set<Application> apps; and am getting org.apache.openjpa.util.IntId cannot be cast to com.nscorp.tibco.template.db.AppGroup -- View this message in context: http://openjpa.208410.n2.nabble.com/ClassCastException-org-apache-openjpa-util-IntId-incompatible-tp7584145p7588779.html Sent from the OpenJPA Users mailing list archive at Nabble.com.