ObjectDB ObjectDB

Internal Website Search

31-40 of 139 resultsRefresh

Database Inconsistency or corruption

@javax.persistence.GeneratedValue(strategy = javax.persistence.GenerationType.TABLE, generator ... .IAttribute { @javax.persistence.Id @javax.persistence.GeneratedValue(strategy=javax.persistence ... implements Serializable, metamodel.IValue { @javax.persistence.Id @javax.persistence.GeneratedValue

List of Enum Values in an entity

.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import org ...   serialVersionUID = 1L; @Id @GeneratedValue Long       id; private String     name; private Date ... static class MyEntity {         @Id @GeneratedValue Long id;                 ArrayList<MyEnum

ID format in objectdb 2.x for JDOHelper.getObjectId

: private @Id @GeneratedValue long id; // JPA code and then the ID will be injected automatically ... @GeneratedValue long id; but i think it only works in case of JPA not with JDO. Do you the any ... @GeneratedValue     private long id; This should work also with JDO, because you may mix JPA

Can a Set<E> be a foreign key?

{     @Id @GeneratedValue     private long characterId;     private String characterName;     private Location characterLocation; and: @Entity public class Cell {     @Id @GeneratedValue ... can do this safely and retrieve it nicely later on: @Entity public class Cell {     @Id @GeneratedValue

find() cost unreasonable time!

    @GeneratedValue(strategy=GenerationType.IDENTITY) private int id; @ManyToOne @JoinColumn(name ... .persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id ...     @GeneratedValue(strategy=GenerationType.IDENTITY) private int id; @ManyToOne @JoinColumn(name="parent

Remove an entity which attributes were changed - OptimisticLockException

{         @Id @GeneratedValue long id;         int value;     } } Version 2.6.8 fixes the bug. support ... javax.persistence.EntityManagerFactory; import javax.persistence.GeneratedValue; import javax ... ();     }     @Entity     public static class MyEntity {         @Id         @GeneratedValue

Criteria query error: Unexpected query token

= -7979088681300801112L; /** * Primary key for entity */ @Id // @GeneratedValue(strategy ... ", initialValue = 1, allocationSize = 50) // @GeneratedValue(strategy = GenerationType.SEQUENCE) @GeneratedValue private Long id; /** * Version of object, supporting optimistic lock

Database size is much larger than expected (x2)

.persistence.DiscriminatorValue; import javax.persistence.Entity; import javax.persistence.GeneratedValue ... false; } @Override public int hashCode() {   return sUrl.hashCode(); } @Id     @GeneratedValue

find() delay

();     }        @Entity     public static final class MyEntity {         @Id @GeneratedValue long id ... );   em.close();   emf.close(); } @Entity static class Node {   @Id @GeneratedValue(strategy

Primary key generation problem after changing entity package

) @GeneratedValue(generator = "SEQ_BOARD", strategy = GenerationType.SEQUENCE) lwalkowski Lukasz ... _BOARD", allocationSize = 5, initialValue = 1)         @GeneratedValue(generator = "SEQ_BOARD

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