ObjectDB ObjectDB

Internal Website Search

31-40 of 63 resultsRefresh
12

Primary key generation problem after changing entity package

) @GeneratedValue(generator = "SEQ_BOARD", strategy = GenerationType.SEQUENCE) lwalkowski Lukasz ... ", strategy = GenerationType.SEQUENCE)         Long id;    } } Then I renamed A to B and added schema
12

Wrong data stored in time only fields

.EntityManagerFactory; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType ...         @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="DateTime_sequence
12

List always null

= GenerationType.AUTO)     private Long id;     @ManyToOne(targetEntity = Categoria.class)     private List ... static final long serialVersionUID = 1L;         @Id     @GeneratedValue(strategy = GenerationType
12

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
12

Criteria query error: Unexpected query token

= GenerationType.TABLE, generator = "sequences") // @TableGenerator(name = "sequences", initialValue = 1, allocationSize = 50) // @GeneratedValue(strategy = GenerationType.SEQUENCE
12

Problem with entities detection

.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import ... = GenerationType.IDENTITY) @Basic(optional = false) @Column(name = "id_alumno") private
12

Relationships and tracking changes

= GenerationType.AUTO) private Long id; @OneToMany (fetch=FetchType.LAZY,cascade=CascadeType.ALL, mappedBy ... @Column(name = "ID") @GeneratedValue(strategy = GenerationType.AUTO) private Long id; @ManyToOne
8

Possible cause for "Enhancement of type ... is old and cannot be used"

with @TableGenerator/strategy = GenerationType.TABLE (www.objectdb.com/ticket/1823) You had attempted
8

Immediately retrieve unique id

; @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sampleSeqGenerator") @Id long id; The id
2

New entity objects are duplicated on merge cascading

= GenerationType.AUTO)         private Long id;                 @OneToMany(cascade= CascadeType ... static class Chapter {         @Id         @GeneratedValue(strategy = GenerationType.AUTO

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support