ObjectDB Database Search
101-150 of 200 resultsjakarta.persistence.MapKeyJoinColumn") Map organization; } Example 2 : @Entity public class VideoStore { @Id int id; String name ; Address ... ; ... } See Also: ForeignKey Since: Jakarta Persistence (JPA) 2 .0 Annotation Elements String name ... . Default: "" Since: Jakarta Persistence (JPA) 3. 2 String table (Optional) The name of the table | |
jakarta.persistence.CollectionTable of the Column annotation. In the case of a basic type, the column name is derived from the name of the collection-valued field or property. In the case of an embeddable class, the column names are derived from the field or property names of the embeddable class. To override the default properties | |
Paths and Types in JPQL and Criteria API can be extended by reusing the dot ( . ) operator. For example, c.capital. name is a nested path expression that navigates from the Capital entity to its name field. A path expression can be extended ... with a matching name . The path expression is valid even if the persistent field is declared as | |
jakarta.persistence.criteria.CriteriaBuilder compatible with varags. Since: Jakarta Persistence (JPA) 2 .0 The JPA Criteria API Queries article ... more restriction predicates Returns: and predicate. Since: Jakarta Persistence (JPA) 3. 2 Expression ... . Since: Jakarta Persistence (JPA) 3. 2 Order asc ( Expression expression ) Create an ordering by | |
JPA Metamodel Types Jakarta Persistence (JPA) 3. 2 Base type definitions The core abstractions of model types ... superclasses. Represents an @Entity class in the domain model, providing access to the entity's name | |
Retrieving JPA Entities the Level 2 (L2) cache, if enabled. JPA then adds the new entity to the persistence context as a managed ... a persistent field in a hollow object, such as the manager 's name in the preceding example, triggers | |
UPDATE SET Queries in JPA/JPQL You can update existing entities, as explained in chapter 2 , by following these steps: Retrieve the entities into an EntityManager . Update the relevant entity fields within an active transaction ... without an explicit variable name ) for iteration. Multiple variables and JOIN operations are not supported | |
jakarta.persistence.PersistenceConfiguration via this API reflect the similarly- named elements of the persistence.xml file. This API may not be used ... EntityManagerFactory configure() { return new PersistenceConfiguration() . name ("DocumentData") .nonJtaDataSource ... ) Since: Jakarta Persistence (JPA) 3. 2 Public Static Fields CACHE_MODE String specifying a SharedCacheMode | |
jakarta.persistence.TableGenerator that may be referenced by name when a generator element is specified for the GeneratedValue annotation. A table ... of the generator name is global to the persistence unit (across all generator types). If no name ... class, then the name defaults to the name of the entity. If no name is explicitly specified | |
jakarta.persistence.JoinColumn: "" Since: Jakarta Persistence (JPA) 3. 2 String table (Optional) The name of the table that contains ... and the default values apply. Example: @ManyToOne @JoinColumn( name = "ADDR_ID") public Address getAddress ... Customer class @OneToMany @JoinColumn( name = "CUST_ID") // join column is in the table for Order | |
JPA Connections and Transactions a persistence unit name as an argument. As an extension, ObjectDB lets you specify a database URL or path ... rather than a persistence unit name . To use ObjectDB embedded directly in your application (embedded mode ... : protocol prefix is optional if the database file name extension is .odb or .objectdb | |
jakarta.persistence.AttributeOverride, " key. " or " value. " must be used to prefix the name of the attribute that is being overridden in ... of embedding, a dot ( . ) notation form must be used in the name element to indicate an attribute within an embedded attribute. The value of each identifier used with the dot notation is the name | |
Database Transaction Replayer When recording is enabled , ObjectDB maintains a recording directory for each database file. The name of the recording directory is the database file name with the .odr (ObjectDB Recording) suffix. By ... of files: Backup files, with names in the format .odb Recording files, with names in the format .odr | |
jakarta.persistence.SequenceGenerator that may be referenced by name when a generator element is specified for the GeneratedValue annotation. A sequence ... of the generator name is global to the persistence unit (across all generator types). If no name ... of an entity class, then the name defaults to the name of the entity. If no name is explicitly specified | |
jakarta.persistence.NamedNativeQuery Interfaces: Annotation Target: Type Declares a named native SQL query and, optionally, the mapping of the result of the native SQL query. Query names are scoped to the persistence unit. A named query ... how the native SQL query result set should be interpreted, for example: @NamedNativeQuery( name | |
jakarta.persistence.SecondaryTable { ... } Example 2 : Single secondary table with multiple primary key columns. @Entity @Table( name ... , and have the same names and types as the referenced primary key columns of the primary table. Example 1: Single secondary table with a single primary key column. @Entity @Table( name = "CUSTOMER") @SecondaryTable | |
jakarta.persistence.AssociationOverride an embeddable class, the name element specifies the referencing relationship field or property ... syntax must be used in the name element to indicate an attribute within an embedded attribute. The value of each identifier used with the dot notation is the name of the respective embedded field or | |
jakarta.persistence.MapKeyColumn to filename ... } Since: Jakarta Persistence (JPA) 2 .0 Annotation Elements String name (Optional ... is a basic type. If the name element is not specified, it defaults to the concatenation of the following: the name of the referencing relationship field or property; " _ "; " KEY ". Example: @Entity | |
JPA Entity Fields { String name ; @ManyToOne Department department; } @Entity public class Department { @OneToMany ... public class Department { @OneToMany ( mappedBy ="department") @OrderBy (" name ") List employees; } In ... Employee e WHERE e.department = :d ORDER BY e. name The specified field ( " name " ) must be a sortable | |
GROUP BY and HAVING clauses SUBSTRING(c. name , 1, 1) FROM Country c GROUP BY SUBSTRING(c. name , 1, 1); The FROM clause iterates ... letter of their names . The SELECT clause then receives these groups and returns the first letters as ... : SELECT DISTINCT SUBSTRING(c. name , 1, 1) FROM Country c GROUP BY with aggregate functions JPQL supports | |
jakarta.persistence.PrimaryKeyJoinColumn, the foreign key columns are assumed to have the same names as the primary key columns of the primary table of the superclass. Example: Customer and ValuedCustomer subclass @Entity @Table( name = "CUST ... @Table( name = "VCUST") @DiscriminatorValue("VCUST") @PrimaryKeyJoinColumn( name = "CUST_ID") public | |
jakarta.persistence.JoinTable is missing, the default values of the annotation elements apply. The name of the join table is assumed to be the table names of the associated primary tables concatenated together (owning side first) using an underscore. Example: @JoinTable( name = "CUST_PHONE", joinColumns = @JoinColumn( name = "CUST_ID | |
JPA Metamodel API an EntityManager instance named em , you can get a Metamodel instance as follows: Metamodel ... - including inherited: Attribute strAttr1 = managedType. getAttribute (" name "); // Get a specific attribute - excluding inherited: Attribute strAttr2 = managedType. getDeclaredAttribute (" name | |
jakarta.persistence.Column( name = "DESC", nullable = false, length = 512) public String getDescription() { return description; } Example 2 : @Column( name = "DESC", columnDefinition = "CLOB NOT NULL", table = "EMP_DETAIL") @Lob public String getDescription() { return description; } Example 3: @Column( name = "ORDER_COST", updatable | |
jakarta.persistence.ColumnResult ConstructorResult annotation to map a column of the SELECT list of a SQL query. The name element references the name of a column in the SELECT list — i.e., column alias, if applicable. Scalar result types ... order_item, " + "i. name AS item_ name , " + "FROM Order o, Item i " + "WHERE (order_quantity 25 | |
jakarta.persistence.NamedStoredProcedureQuery StoredProcedureParameter Since: Jakarta Persistence (JPA) 2 .1 Annotation Elements String name The name used to refer ... Implemented Interfaces: Annotation Target: Type Declares and names a stored procedure, its parameters ... superclass. The name element is the name that is passed as an argument to the EntityManager | |
jakarta.persistence.NamedQuery: Annotation Target: Type Declares a named query written in the Jakarta Persistence query language. Query names are scoped to the persistence unit. A named query may be executed by calling EntityManager.createNamedQuery . The following is an example of the definition of a named query written in | |
jakarta.persistence.criteria.ParameterExpression , TupleElement Type of criteria query parameter expressions. Since: Jakarta Persistence (JPA) 2 .0 Public Instance Methods Selection alias ( String name ) Assigns an alias to the selection item ... Selection Parameters: name - alias Returns: selection item. Since: Jakarta Persistence (JPA) 1.0 | |
Auto Generated Values only within that hierarchy. The SEQUENCE Strategy The sequence strategy has two parts: defining a named sequence ... . It takes a name , an initial value (default is 1), and an allocation size (default is 50). A sequence ... the SEQUENCE strategy in the @GeneratedValue annotation to attach the field to a previously defined named | |
JPA Fetch Graphs Annotations Named entity graphs provide a static mechanism for defining fetch plans using annotations ... named entity graphs at the class level using the following annotations: Specifies a named entity graph ... and nested relationships: Specifies an individual attribute node within a named entity graph or subgraph | |
Posting Sample Code { private String name ; MyEntity(String name ) { this. name = name ; }   | |
jakarta.persistence.SecondaryTables secondary tables assuming primary key columns are named the same in all tables. @Entity @Table( name = "EMPLOYEE") @SecondaryTables({ @SecondaryTable( name = "EMP_DETAIL"), @SecondaryTable( name = "EMP_HIST")}) public class Employee { ... } Example 2 : Multiple secondary tables with differently named | |
jakarta.persistence.SqlResultSetMapping.quantity AS order_quantity, " + "o.item AS order_item, " + "i. name AS item_ name , " + "FROM Order o ... "); @SqlResultSetMapping( name = "OrderResults", entities = { @EntityResult( entityClass = com.acme.Order.class, fields = { @FieldResult( name = "id", column = "order_id"), @FieldResult( name = "quantity", column = "order | |
jakarta.persistence.NamedEntityGraph Interfaces: Annotation Target: Type Defines a named entity graph . This annotation must be applied ... . A reference to a named entity graph may be obtained by calling EntityManager.getEntityGraph , and may be passed to EntityManager.find . Since: Jakarta Persistence (JPA) 2 .1 Annotation Elements String | |
jakarta.persistence.Convert attribute. The value of each identifier used with the dot notation is the name of the respective embedded ... to prefix the name of the attribute of the key or value type that is converted. Example 1: Convert ... ) boolean fullTime; ... } Example 2 : Auto-apply conversion of a basic attribute @Converter(autoApply | |
jakarta.persistence.Persistence an EntityManagerFactory for the named persistence unit. Parameters: persistenceUnitName - the name ... an EntityManagerFactory for the named persistence unit, using the given properties. Parameters: persistenceUnitName - the name of the persistence unit properties - additional properties to use when creating the factory | |
Privacy Policy information may include, but is not limited to: email address, username, full name , user name , profile picture, profile signature, company name , phone number, billing address, country, payment ... Service may see Your name , profile, pictures and description of Your activity. Similarly, other users | |
JPA Value Generation Annotations a specific generator name and strategy. An enumeration that defines the strategies for primary key ... generator logic at the class level using these annotations: Defines a named primary key generator that uses a database sequence. It allows you to customize the sequence name , initial value | |
Running JPA Queries()); } Note: If you only need to print the country names , it is more efficient to use a projection query to retrieve only the names instead of the entire Country instances. Single-result query execution ... . createQuery ( "SELECT c FROM Country c WHERE c. name = 'Canada'"); Country c = (Country)query | |
jakarta.persistence.criteria.Path. Since: Jakarta Persistence (JPA) 2 .0 The Paths and Types in JPQL and Criteria API article explains how to use Path . Public Instance Methods Selection alias ( String name ) Assigns an alias to the selection ... . Inherited from Selection Parameters: name - alias Returns: selection item. Since: Jakarta Persistence | |
jakarta.persistence.ConstructorResult is retrieved for the constructed object. Example: Query q = em.createNativeQuery( "SELECT c.id, c. name ... " + "WHERE o.cid = c.id " + "GROUP BY c.id, c. name ", "CustomerDetailsResult"); @SqlResultSetMapping( name ... , columns = { @ColumnResult( name = "id"), @ColumnResult( name = " name "), @ColumnResult( name | |
jakarta.persistence.UniqueConstraint to a provider-generated name . Default: "" Since: Jakarta Persistence (JPA) 2 .0 String[] columnNames ... for a primary or secondary table. Example: @Entity @Table( name = "EMPLOYEE", uniqueConstraints = @UniqueConstraint(columnNames = {"EMP_ID", "EMP_ NAME "}) ) public class Employee { ... } Since: Jakarta | |
jakarta.persistence.MapKey() {... } ... } @Entity public class Employee { ... @Id Integer getEmpId() { ... } @ManyToOne @JoinColumn( name = "dept_id") public Department getDepartment() { ... } ... } Example 2 : @Entity public class Department { ... @OneToMany(mappedBy = "department") @MapKey( name = " name ") public Map getEmployees | |
jakarta.persistence.NamedAttributeNode . See Also: NamedEntityGraph NamedSubgraph Since: Jakarta Persistence (JPA) 2 .1 Annotation Elements String value (Required) The name of the attribute that must be included in the graph. Since: Jakarta Persistence (JPA ... of this element is the name of the subgraph as specified by the name element of the corresponding | |
Step 4: Add a Controller Class) and selecting New Class . The package name should be guest . Enter GuestController as the class name - use exactly that case sensitive class name . Click Finish to create ... name = request.getParameter(" name "); if ( name != null) guestDao.persist(new Guest( name | |
Step 4: Add a Servlet Class ... Enter GuestServlet as the class name - use exactly that case sensitive class name . The Java package name should be guest. Click Finish to create the new servlet class. Now replace the content ... .http.HttpServletResponse; @WebServlet( name ="GuestServlet", urlPatterns={"/guest"}) public class | |
Step 4: Add a Servlet Class; New Other... Web Servlet and clicking Next . The Java package name should be guest. Enter GuestServlet as the class name - use exactly that case sensitive class name . Click Finish to create ... .http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @WebServlet( name | |
Step 4: Add a Servlet Class New Other... Web Servlet and clicking Next . The Java package name should be guest. Enter GuestServlet as the class name - use exactly that case sensitive class name . Click Finish ... a new guest (if any): String name = request.getParameter(" name "); if ( name != null) { em | |
Step 4: Add a Controller Class New Java Class ... Enter GuestController as the class name - use exactly that case sensitive class name . The Package should be guest. Click Finish to create the new Spring Controller class. Now ... (HttpServletRequest request) { // Handle a new guest (if any): String name = request.getParameter(" name | |
Step 4: Add a Servlet Class ... Enter GuestServlet as the class name - use exactly that case sensitive class name . The Java package name should be guest. Click Finish to create the new servlet class. Now replace the content ... = emf.createEntityManager(); try { // Handle a new guest (if any): String name = request |