Home » Search

About GeneratedValue

41-50 of 130Refresh
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
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
Issue
1

After using the enhancer, Lazy loaded collections are no longer loading. They are set as null

_id") @GeneratedValue(strategy= GenerationType.TABLE) protected Long id; @Override ... > { @Id @Column(name = "project_id") @GeneratedValue(strategy= GenerationType.TABLE
Forum
1

Attempt to execute a query using a closed EntityManager

. id is a long field in Client, so it should be there after Client is set. Id has @Id @GeneratedValue ... reloading or refresh, because c.getId() should just return the "long" field which is @Id @GeneratedValue
Forum
1

Beginners questions

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

Bug: ClassCastException by retrieval

; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax ... .close();   emf.close(); } } @Entity class Node { @Id     @GeneratedValue(strategy
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

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

Date field Index is corrupted due to time change

.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.GeneratedValue ... ();             }         }                 @Id         @GeneratedValue(strategy=GenerationType.SEQUENCE
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