Home » Search

About GeneratedValue

61-70 of 127Refresh
Forum
1

Items in list are doubled, when the entity class is not enhanced

@GeneratedValue private Long id; @OneToMany(mappedBy = "customer",fetch= FetchType.EAGER ... final long serialVersionUID = 1L; @Id @GeneratedValue private Long id
Forum
1

failure to enforce NOT NULL for java.lang.String

: @Entity public class Request { public Request() { } @Id @GeneratedValue(strategy ... {         public Request() {         }         @Id @GeneratedValue(strategy=GenerationType.IDENTITY
Forum
1

@Unique member combination not working

Why does the below code not enforce unique restrictions?   Person @Entity @Unique(members = {"name", "surname"}) public class Person implements Serializable {     @Id     @GeneratedValue ... {         @Id @GeneratedValue private Integer id;         private String name;         private String
Forum
1

can't get HashMap out of the database

; // Persistent Fields: @Id @GeneratedValue Long id; private String name; private ... GuestHolder { // Persistent Fields: @Id @GeneratedValue Long id; @OneToMany(fetch
Forum
1

Does ObjectDB support lazy loading?

@GeneratedValue Long id; @OneToMany(fetch=FetchType.LAZY, cascade=CascadeType.ALL) List list; } @Entity static class B { @Id @GeneratedValue public Long id; int
Forum
1

Join query problem with new statetment

Inspiration extends BaseEntity implements Serializable, Convertable {     @GeneratedValue(strategy ... public class Product extends BaseEntity implements Serializable, Convertable {     @GeneratedValue
Forum
1

Unable to persist fields in subclass

; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javafx.beans.property ... SimpleAbstractPersonTest { /** * */ @Id @GeneratedValue private long id; private int medicalRecordNumber
Forum
1

mappedBy problem

If I put the mappedBy element to the @OneToMany, the owned side (the many side) will never persist ! for example @Entity public class Employee { @Id @GeneratedValue(strategy = GenerationType ... { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) public Long id; public String line
Forum
1

Database size is much larger than expected (x2)

.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import ...     @GeneratedValue(strategy=GenerationType.IDENTITY) int id; int iSize; String sUrl; public
Forum
1

@SequenceGenerator and single id in whole database

attributes of the @GeneratedValue annotation. By using the IDENTITY strategy without specifying ... ", initialValue = 1000) @GeneratedValue(generator = "XXX") @Id private long id; As I understand default