ObjectDB ObjectDB

Internal Website Search

111-120 of 200 resultsRefresh
4

getId(type)

) Return the attribute that corresponds to the id attribute of the entity or mapped superclass. Parameters: type - the type of the represented id attribute Returns: id attribute Throws: IllegalArgumentException - if id attribute of the given type is not present in the identifiable type or if the identifiable type has an id class Since: JPA 2.0
4

javax.persistence.AssociationOverride

=@JoinColumn(name="ADDR_ID")) // address field mapping overridden to ADDR_ID foreign key ... { @Id int id; @AssociationOverride( name="phoneNumbers", joinTable ... ; } @Entity public class PhoneNumber { @Id int number; @ManyToMany
4

javax.persistence.PersistenceUnitUtil

entity) Return the id of the entity. Return the id of the entity. A generated id is not guaranteed ... yet have an id. Parameters: entity - entity instance Returns: id of the entity Throws
4

javax.persistence.ColumnResult

( "SELECT o.id AS order_id, " + "o.quantity AS order_quantity, " + "o.item ... " + "WHERE (order_quantity > 25) AND (order_item = i.id)", "OrderResults ... .class, fields={ @FieldResult(name="id", column="order_id"), @FieldResult
4

javax.persistence.AssociationOverrides

: @MappedSuperclass public class Employee { @Id protected Integer id; @Version ... Locker locker; public Integer getId() { ... } public void setId(Integer id ... ( name="address", joinColumns=@JoinColumn("ADDR_ID
4

javax.persistence.FieldResult

.createNativeQuery( "SELECT o.id AS order_id, " + "o.quantity AS order_quantity ... > 25) AND (order_item = i.id)", "OrderResults"); @SqlResultSetMapping(name="OrderResults ... ={ @FieldResult(name="id", column="order_id"), @FieldResult(name="quantity", column
3

javax.persistence.MappedSuperclass

{ @Id protected Integer empId; @Version protected Integer version; @ManyToOne ... () { ... } public void setEmpId(Integer id) { ... } public Address getAddress ... (name="ADDR_ID")) public class PartTimeEmployee extends Employee { // Inherited empId
3

hasSingleIdAttribute()

Method javax.persistence.metamodel.IdentifiableType boolean hasSingleIdAttribute() Whether the identifiable type has a single id attribute. Returns true for a simple id or embedded id; returns false for an idclass. Returns: boolean indicating whether the identifiable type has a single id attribute Since: JPA 2.0
3

javax.persistence.JoinTable

", joinColumns= @JoinColumn(name="CUST_ID", referencedColumnName="ID"), inverseJoinColumns= @JoinColumn(name="PHONE_ID", referencedColumnName="ID") ) Since: JPA 1.0
3

getIdentifier(entity)

Method javax.persistence.PersistenceUnitUtil Object getIdentifier( Object entity ) Return the id of the entity. A generated id is not guaranteed to be available until after the database insert has occurred. Returns null if the entity does not yet have an id. Parameters: entity - entity instance

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