About GeneratedValue

71-80 of 132Refresh
Forum
1

Version 2.2.7 build 7/8 issue

Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue ... { private static final long serialVersionUID = 1L; @Id @GeneratedValue private Long id
Forum
1

Wrong data stored in time only fields

.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.GeneratedValue; import ... ();             }         }                 @Id         @GeneratedValue(strategy=GenerationType.SEQUENCE
Forum
1

On ensuring ID available after persist

up to another element) I am using the following for the ID: @Id //@GeneratedValue(strategy = GenerationType.AUTO)// Explicit for EclipseLink + Oracle or MySQL @GeneratedValue//ObjectDB takes as
Forum
1

Relationships and tracking changes

static final long serialVersionUID = 1L; @Id @Column(name = "ID") @GeneratedValue(strategy ... @Column(name = "ID") @GeneratedValue(strategy = GenerationType.AUTO) private Long id; @ManyToOne
Forum
1

Problem with entities detection

.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id ... { private static final long serialVersionUID = 1L; @Id @GeneratedValue
Forum
1

EntityManager getMetamodel() causes crash

.persistence.GeneratedValue; import javax.persistence.Id; /** * MyEntity */ @Entity public class MyEntity implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue
Forum
1

"where in" query

{         @Id @GeneratedValue long id;     } } Thanks. That would be fine if upgrading didn't break
Forum
1

@Column( name = "columnName") doesn't work

I have created following entity class with custom fields @Entity public class AfwDataKey { @Id @GeneratedValue @Column(name = "KEY_ID") private long id; private Long timestamp; @ManyToOne @Column(name = "KEY_DESCRIPTOR") private AfwKeyDescriptor keyDescriptor
Forum
1

@ElementCollection of type enum

MyEntity {         @Id @GeneratedValue Long id;                 @ElementCollection @Enumerated
Forum
1

_PersistenceException: Type is not found on getSingleResult.

Greetings. I'm new to ObjectDB. I'm using an ObjectDB local database for a Java SE standalone application and i'm having issues querying for an object of this entity: @Entity public class Estudiante{     @Id     @GeneratedValue     private Integer id;         @Column     private String