ObjectDB Database Search

51-100 of 169 results

General Performance Issues Illustrated with a Specific Method

listPatientsByIDsWithBasicData( String ids) { Long st = new Date().getTime(); System.out.println ... ().equals("")) { return cs; } String jpql; Map m; m = new HashMap(); jpql = "select new lk.gov ... (cascade = CascadeType.ALL,fetch = FetchType.EAGER) private Person person; @Index private String phn

jakarta.persistence.GenerationType

for the particular database. For a primary key of type java.util.UUID or String , this is equivalent to UUID ... . May be used to generate primary keys of type java.util.UUID or String . Since: Jakarta Persistence (JPA) 1.0 Synthetic Public Static Methods: values(), valueOf( String ) Additional JDK methods

jakarta.persistence.MapKeyColumn

to filename ... } Since: Jakarta Persistence (JPA) 2.0 Annotation Elements String name (Optional ... the persistence provider. Default: true Since: Jakarta Persistence (JPA) 1.0 String columnDefinition ... String options (Optional) A SQL fragment appended to the generated DDL which declares this column

jakarta.persistence.DiscriminatorType

. Since: Jakarta Persistence (JPA) 1.0 STRING String as the discriminator type. Since: Jakarta Persistence (JPA) 1.0 Synthetic Public Static Methods: values(), valueOf( String ) Additional JDK methods inherited from ... /valueOf(Class, String ) Additional JDK methods inherited from java.lang.Object java.lang.Object/clone

jakarta.persistence.DiscriminatorValue

is STRING , the discriminator value default is the entity name. The inheritance strategy ... = STRING , length = 20) @DiscriminatorValue("CUSTOMER") public class Customer { ... } @Entity ... { ... } See Also: DiscriminatorColumn Since: Jakarta Persistence (JPA) 1.0 Annotation Elements String value (Optional) The value

jakarta.persistence.EntityNotFoundException

with null as its detail message. Since: Jakarta Persistence (JPA) 1.0 EntityNotFoundException ( String ... ( String message , Exception cause ) Constructs a new EntityNotFoundException exception ... ~, String , String ,Set), java.lang.Throwable/printStackTrace(), java.lang.Throwable/printStackTrace

jakarta.persistence.EntityExistsException

. Since: Jakarta Persistence (JPA) 1.0 EntityExistsException ( String message ) Constructs a new ... - the detail message. Since: Jakarta Persistence (JPA) 1.0 EntityExistsException ( String message , Throwable cause ... .lang.Throwable/printEnclosedStackTrace(PrintStreamOrWriter,StackTraceElement~, String , String ,Set), java

jakarta.persistence.Enumerated

is an enum type. An enum can be mapped as either a string or an integer , where EnumType enumerates ... to the field or property: if the enum type has a final field of type String annotated EnumeratedValue , the enumerated type is inferred to be EnumType. STRING ; otherwise, the enumerated type is taken

jakarta.persistence.Index

CollectionTable JoinTable TableGenerator Since: Jakarta Persistence (JPA) 2.1 Annotation Elements String ... : "" Since: Jakarta Persistence (JPA) 1.0 String columnList (Required) The columns included in the index, in order ... (Optional) Whether the index is unique. Default: false Since: Jakarta Persistence (JPA) 1.0 String

jakarta.persistence.ForeignKey

AssociationOverride Since: Jakarta Persistence (JPA) 2.1 Annotation Elements String name (Optional ... generation of a constraint. Default: CONSTRAINT Since: Jakarta Persistence (JPA) 1.0 String ... ) 1.0 String options (Optional) A SQL fragment appended to the generated DDL which creates

jakarta.persistence.NamedAttributeNode

. See Also: NamedEntityGraph NamedSubgraph Since: Jakarta Persistence (JPA) 2.1 Annotation Elements String value ... ) 1.0 String subgraph (Optional) If the attribute references a managed type ... this name. Default: "" Since: Jakarta Persistence (JPA) 1.0 String keySubgraph (Optional

jakarta.persistence.MapsId

{ @Id long empId; String name; ... } And then the dependent entity uses EmbeddedId to declare its composite primary key: @Embeddable public class DependentId { String name; long empid; // corresponds ... is derived from the referenced parent entity. Since: Jakarta Persistence (JPA) 2.0 Annotation Elements String

jakarta.persistence.EntityManagerFactory

EntityManagerFactory . Public Instance Methods void addNamedEntityGraph ( String graphName , EntityGraph ... graph entityGraph - entity graph Since: Jakarta Persistence (JPA) 2.1 void addNamedQuery ( String ... factory has been closed. Since: Jakarta Persistence (JPA) 2.0 String getName () The name

jakarta.persistence.FetchType

: @Basic(fetch = LAZY) protected String getName() { return name; } See Also: Basic ElementCollection ... . Since: Jakarta Persistence (JPA) 1.0 Synthetic Public Static Methods: values(), valueOf( String ) Additional ... /toString(), java.lang.Enum/valueOf(Class, String ) Additional JDK methods inherited from java.lang.Object

jakarta.persistence.PersistenceUnitUtil

. Since: Jakarta Persistence (JPA) 3.2 boolean isLoaded ( Object entity , String attributeName ) Determine ... ( Object entity , String attributeName ) Load the persistent value of a given persistent attribute

jakarta.persistence.PersistenceUnitTransactionType

(), valueOf( String ) Additional JDK methods inherited from java.lang.Enum java.lang.Enum/clone(), java.lang ... (), java.lang.Enum/toString(), java.lang.Enum/valueOf(Class, String ) Additional JDK methods inherited

jakarta.persistence.IdClass

to be annotated. Example: @IdClass(EmployeePK.class) @Entity public class Employee { @Id String empName; @Id Date birthDay; ... } public record EmployeePK( String empName, Date birthDay

jakarta.persistence.FlushModeType

required to. Since: Jakarta Persistence (JPA) 1.0 Synthetic Public Static Methods: values(), valueOf( String ... .lang.Enum/toString(), java.lang.Enum/valueOf(Class, String ) Additional JDK methods inherited from

jakarta.persistence.Lob

) is inferred from the type of the persistent field or property. For string and character-based types ... ) @Column(name = "REPORT") protected String report; Example 2: @Lob @Basic(fetch = LAZY) @Column(name

jakarta.persistence.LockModeType

(JPA) 1.0 Synthetic Public Static Methods: values(), valueOf( String ) Additional JDK methods inherited ... .Enum/valueOf(Class, String ) Additional JDK methods inherited from java.lang.Object java.lang.Object

jakarta.persistence.InheritanceType

(), valueOf( String ) Additional JDK methods inherited from java.lang.Enum java.lang.Enum/clone(), java.lang ... /readObjectNoData(), java.lang.Enum/toString(), java.lang.Enum/valueOf(Class, String ) Additional JDK methods

jakarta.persistence.MapKeyClass

{ @Id int id; ... @ElementCollection(targetClass = String .class) @MapKeyClass( String .class) Map

jakarta.persistence.ConstraintMode

( String ) Additional JDK methods inherited from java.lang.Enum java.lang.Enum/clone(), java.lang.Enum ... (), java.lang.Enum/toString(), java.lang.Enum/valueOf(Class, String ) Additional JDK methods inherited

jakarta.persistence.EmbeddedId

public class Employee { @EmbeddedId protected EmployeePK empPK; ... } public record EmployeePK( String empName, Date birthDay) {} Example 2: @Embeddable public class DependentId { String name

jakarta.persistence.ElementCollection

Person { @Id protected String ssn; protected String name; ... @ElementCollection protected Set

jakarta.persistence.FieldResult

") }) }) See Also: EntityResult SqlResultSetMapping Since: Jakarta Persistence (JPA) 1.0 Annotation Elements String name Name of the persistent field or property of the class. Since: Jakarta Persistence (JPA) 1.0 String

jakarta.persistence.EnumeratedValue

, and must be of type: byte , short , or int for EnumType.ORDINAL , or String for EnumType. STRING

jakarta.persistence.PersistenceUtil

(JPA) 2.0 Public Instance Methods boolean isLoaded ( Object entity , String attributeName

jakarta.persistence.Id

primitive wrapper type; String ; java.util.UUID ; java.util.Date ; java.sql.Date ; java.math.BigDecimal

jakarta.persistence.GeneratedValue

entity primary key. Default: AUTO Since: Jakarta Persistence (JPA) 1.0 String generator (Optional

jakarta.persistence.MapKeyEnumerated

( STRING ) public Map getEmployees() { ... } ... } See Also: ElementCollection OneToMany ManyToMany

jakarta.persistence.ManyToMany

: FetchType.LAZY Since: Jakarta Persistence (JPA) 1.0 String mappedBy The field that owns

jakarta.persistence.MapKey

) 1.0 Annotation Elements String name (Optional) The name of the persistent field or property

jakarta.persistence.ManyToOne

jobInfo; ... } @Embeddable public class JobInfo { String jobDescription; @ManyToOne ProgramManager

jakarta.persistence.NamedEntityGraph

, and may be passed to EntityManager.find . Since: Jakarta Persistence (JPA) 2.1 Annotation Elements String

jakarta.persistence.Convert

Since: Jakarta Persistence (JPA) 1.0 String attributeName A name or period-separated path identifying

jakarta.persistence.ColumnResult

NamedNativeQuery ConstructorResult Since: Jakarta Persistence (JPA) 1.0 Annotation Elements String

jakarta.persistence.Entity

. Annotation Elements String name (Optional) The entity name. Defaults to the unqualified name

jakarta.persistence.EntityResult

of the entity class. Default: {} Since: Jakarta Persistence (JPA) 1.0 String discriminatorColumn

jakarta.persistence.AttributeOverride.name

Jakarta Persistence (JPA) Method in jakarta.persistence.AttributeOverride String name (Required) The name of the property whose mapping is being overridden if property-based access is being used, or the name of the field if field-based access is used. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceProperty.name

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceProperty String name The name of the property Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceProperty.value

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceProperty String value The value of the property Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceContext.name

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceContext String name (Optional) The name by which the entity manager is to be accessed in the environment referencing context; not needed when dependency injection is used. Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceContext.unitName

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceContext String unitName (Optional) The name of the persistence unit as defined in the persistence.xml file. If the unitName element is specified, the persistence unit for the entity manager that is accessible in JNDI

jakarta.persistence.PersistenceUnit.name

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceUnit String name (Optional) The name by which the entity manager factory is to be accessed in the environment referencing context; not needed when dependency injection is used. Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceUnit.unitName

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceUnit String unitName (Optional) The name of the persistence unit as defined in the persistence.xml file. If specified, the persistence unit for the entity manager factory that is accessible in JNDI must have the same name. Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.Persistence.PERSISTENCE_PROVIDER

Jakarta Persistence (JPA) Field in jakarta.persistence.Persistence PERSISTENCE_PROVIDER This final String is deprecated and should be removed and is only here for TCK backward compatibility Deprecated: TODO: Either change TCK reference to PERSISTENCE_PROVIDER field to expect "jakarta.persistence

jakarta.persistence.metamodel.EntityType.getName()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.EntityType String getName() Return the entity name. Returns: entity name. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.UniqueConstraint.columnNames

Jakarta Persistence (JPA) Method in jakarta.persistence.UniqueConstraint String [] columnNames (Required) The names of the column which make up the constraint. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.UniqueConstraint.options

Jakarta Persistence (JPA) Method in jakarta.persistence.UniqueConstraint String options (Optional) A SQL fragment appended to the generated DDL which creates this constraint. Default: "" Since: Jakarta Persistence (JPA) 3.2