ObjectDB ObjectDB

Internal Website Search

41-50 of 200 resultsRefresh
8

javax.persistence.metamodel.MappedSuperclassType

,Y> getDeclaredId(Class<Y> type) Return the attribute that corresponds to the id attribute declared by the entity or mapped superclass. Return the attribute that corresponds to the id attribute declared by the entity or mapped superclass. Parameters: type - the type of the represented declared id
2

Step 2: Define a JPA Entity Class

{ private static final long serialVersionUID = 1L; @Id @GeneratedValue private long id; private int x; private int y; public Point() { } Point(int x, int ... id; } public int getX() { return x; } public int getY
2

Step 2: Define a JPA Entity Class

implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue private long id; private int x; private int y; public Point ... () { return id; } public int getX() { return x; } public
2

Step 2: Define a JPA Entity Class

.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; @Entity public ... ; // Persistent Fields: @Id @GeneratedValue Long id; private String name; private ... in the database. Besides the @Entity annotation and the id field (and its annotations) - the Guest
2

Step 2: Define a JPA Entity Class

.GeneratedValue; import javax.persistence.Id; @Entity public class Guest implements Serializable { private static final long serialVersionUID = 1L; // Persistent Fields: @Id @GeneratedValue Long id; private String name; private Date signingDate
2

Step 2: Entity Class and Persistence Unit

.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; @Entity ... ; // Persistent Fields: @Id @GeneratedValue Long id; private String name
2

Step 2: Entity Class and Persistence Unit

; import javax.persistence.Id; @Entity public class Guest implements Serializable { private static final long serialVersionUID = 1L; // Persistent Fields: @Id @GeneratedValue Long id; private String name; private Date signingDate; // Constructors: public
1

[ODB1] Chapter 9 - ObjectDB Explorer

classes to the database using the Explorer, first create and compile the classes externally in your IDE ... in the IDE) is applied to the database automatically when the application stores an object ... a class is useful as a complementary operation to renaming the class in the IDE, to avoid losing old
1

[ODB1] Chapter 4 - JDO Metadata

always uses datastore identity with its own object-id class). 4.3 Metadata for Fields Unlike ... objects can reduce storage space and improve efficiency, but they do not have an object ID ... that every String or Date is stored as a non embedded object (with a unique object ID). The embedded-key
1

[ODB1] Chapter 3 - Persistent Classes

ANT for example), but in most Java IDEs a plugin is required to integrate a JDO enhancer into the IDE Build command. A simple alternative that does not require a plugin and works on any Java IDE

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