i have these classes.
@Embeddable
public class ProductId implements Serializable{
private String supp;
private String lot;
}
@Entity
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public abstract class AbstractStore implements Serializable {
@EmbeddedId
protected ProductId id;
protected Integer dept;
}
@Entity
@Table(name = "SM_STORE")
public class SmStore extends AbstractStore implements
Serializable {
}
when deploy to glassfish, eclipse link gives following exception:
Local Exception Stack:
Exception [EclipseLink-0] (Eclipse Persistence Services -
2.0.0.v20091127-r5931):
org.eclipse.persistence.exceptions.IntegrityException
Descriptor Exceptions:
---------------------------------------------------------
Exception [EclipseLink-74] (Eclipse Persistence Services -
2.0.0.v20091127-r5931):
org.eclipse.persistence.exceptions.DescriptorException
Exception Description: The primary key fields are not set for
this descriptor.
Descriptor: RelationalDescriptor(com.comany.SmStore -->
[DatabaseTable(SM_STORE)])
am i missing something.
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users