Howto declare @Entity class for oracle table w/o PK?
I has received the error message:
Column “rowid” cannot be resolved on table “LOG”
when doing mapping like this:
@Entity
public class Log implements Serializable {
…
@Id
private ROWID rowid;
…
}
Mapping a ROWID as
Idisn’t supported by standard JPA and I couldn’t find any obvious proof that EclipseLink is providing an extension for this (I only found this message).But this is not your only option and the JPA wikibook has a good paragraph about this situation: