Internal Website Search

21-30 of 145 resultsRefresh

Need help to make this test work and define proper annotations for entities Lists

javax.persistence.EntityManagerFactory; import javax.persistence.GeneratedValue; import javax ... ;    @Id @GeneratedValue private long id;         ... @GeneratedValue private long id;             public

Error 363 - Failed to read value of inverse relationship

{ @Id @GeneratedValue(strategy = GenerationType.AUTO) private long id ... final long serialVersionUID = 1L; @Id @GeneratedValue private Long id; private ... Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue


.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id ... static final long serialVersionUID = 1L; // @GeneratedValue @Id @Column(name = "id") @GeneratedValue(strategy = GenerationType.IDENTITY) private int id; @Column(name = "username") private

Join performance in Objectdb

@GeneratedValue long id;         B b;       ... B {         @Id @GeneratedValue(strategy=GenerationType.SEQUENCE ... ;  @Id @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="seqC")     

EmbeddedId with Generated field value

adding the documented annotation @GeneratedValue like the following: Solution 1) class A { @Id @GeneratedValue private long uid; ... } Solution 2) class CompositePK { @GeneratedValue ... (ZoneId.class) @Entity public static class A {     @Id @GeneratedValue public

Uninitialized primary key (id = 0)

="/java/jpa/entity/generated">@GeneratedValue and you do not initialize it manually.@GeneratedValue, but it do not work after I add this command: @GeneratedValue(strategy ... >Adding @GeneratedValue should solve the problem, unless

@OneToMany(fetch = FetchType.LAZY) list is always null

", allocationSize = 1) public class Parent { @Id @GeneratedValue(strategy = GenerationType.SEQUENCE ... ", allocationSize = 1) public class Child { @Id @GeneratedValue(strategy = GenerationType ... { @Id @GeneratedValue(strategy = GenerationType.AUTO) private int id

find() cost unreasonable time!

    @GeneratedValue(strategy=GenerationType.IDENTITY) private int id; @ManyToOne ... ; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax ... (value="0") public class Nodes { @Id     @GeneratedValue(strategy=GenerationType

List of Enum Values in an entity

; import javax.persistence.GeneratedValue; import javax.persistence.Id; import org.eummcr.datastore ... @GeneratedValue Long       id; private String    ... ;    @Id @GeneratedValue Long id;          

New entity objects are duplicated on merge cascading

;    @Id         @GeneratedValue(strategy ... ; @GeneratedValue(strategy = GenerationType.AUTO)         private ... ; public static class A {         @Id @GeneratedValue long id