ObjectDB Database Search
1-50 of 152 resultsJPA Named Queries Annotations level, separating query logic from business code. Query definitions Declare named queries using the following annotations: Specifies a static, named query in the Jakarta Persistence Query Language (JPQL). It is defined on an entity or mapped superclass and assigned a unique name for retrieval | |
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.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.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 | |
SELECT clause (JPQL / Criteria API), the following query returns country names as String instances, rather than Country objects: SELECT c. name FROM Country AS c Using path expressions , such as c. name , in query results is called ... c. name FROM Country AS c", String.class); List results = query. getResultList (); You can use | |
Duplicate Entity class names causes Exception in Query I have two Entities which have the same class name but reside in different packages, only one of them is mentioned in the persistence.xml. I a NamedQuery I use the unqualified class name ... ( name = "objdbTest.Singleton.getItem", query = "SELECT o FROM Item o WHERE o.cachedKey = :cachedKey | |
javax.persistence.PersistenceException: No Persistence provider for EntityManager named in Karaf 4.0.7 and OSGi DS test.persistence.PersistenceException: No Persistence provider for EntityManager named objectdb | |
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 | |
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 | |
Database Management Settings when a database is opened and deletes it when the database is closed. The recovery file name is based on the database file name , with a $ character appended. Every transaction commit is written first ... -separated list of file name extensions that can be used for temporary databases, which are typically used in | |
Apache License, Version 2.0, January 2004 link (or bind by name ) to the interfaces of, the Work and Derivative Works thereof. "Contribution ... such Contributions. 6. Trademarks . This License does not grant permission to use the trade names , trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use | |
Setting and Tuning of JPA Queries.persistence.query.timeout", 6000); For a named query definition, use the hints element: @NamedQuery ( name ="Country.findAll", query ="SELECT c FROM Country c", hints ={@ QueryHint ( name ="jakarta | |
jakarta.persistence.EntityManager createEntityGraph ( String graphName ) Obtain a mutable copy of a named EntityGraph , or return null if there is no entity graph with the given name . Parameters: graphName - name of an entity graph Returns: entity graph. Since: Jakarta Persistence (JPA) 2.1 Query createNamedQuery ( String name ) Create an instance | |
Server Configuration.odb refers to a database file named db.odb in a subdirectory named my within the data directory | |
jakarta.persistence.MapKeyJoinColumn // unidirectional @JoinTable( name = "COMPANY_ORGANIZATION", joinColumns = @JoinColumn( name = "COMPANY"), inverseJoinColumns = @JoinColumn( name = "VICEPRESIDENT")) @MapKeyJoinColumn( name = "DIVISION") Map organization; } Example 2: @Entity public class VideoStore { @Id int id; String name ; Address | |
jakarta.persistence.EntityManagerFactory entityGraph ) Add a named copy of the given EntityGraph to this EntityManagerFactory . If an entity graph with the given name already exists, it is replaced. Parameters: graphName - name for the entity ... name , Query query ) Define the query, typed query, or stored procedure query as a named query | |
jakarta.persistence.EntityGraph ) Get an existing attribute node for the attribute with the given name , or add a new attribute node if there is no existing node. Inherited from Graph Parameters: attributeName - name of the attribute ... . If there is already an existing node for one of the given attribute names , that particular argument | |
jakarta.persistence.Graph for the attribute with the given name , or add a new attribute node if there is no existing node. Parameters: attributeName - name of the attribute Returns: the attribute node. Throws ... nodes to the entity graph. If there is already an existing node for one of the given attribute names | |
jakarta.persistence.JoinColumn 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 ... CollectionTable ForeignKey Since: Jakarta Persistence (JPA) 1.0 Annotation Elements String name (Optional | |
jakarta.persistence.MapKeyColumn 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 public class Item { @Id int id; ... @ElementCollection @MapKeyColumn( name = "IMAGE_ NAME ") @Column( name | |
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 | |
JPA Lifecycle Events and take no arguments. They can have any name and any access level ( public , protected , package , or | |
javax.servlet.ServletException: Annotated methods must follow the JavaBeans naming convention. __odbHidden_getPropertyName: Annotated methods must follow the JavaBeans naming convention. __odbHidden_getWidthPxSideBarLeft ... the h:forms anyway, and they both perform a full submit. There is nothing wrong with the property name ... Enhancer modifies the names of persistent property get and set methods by adding __odbHidden | |
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 ... name (Optional) The name used to identify the entity graph in calls to EntityManager.getEntityGraph | |
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 | |
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.MapKey() {... } ... } @Entity public class Employee { ... @Id Integer getEmpId() { ... } @ManyToOne @JoinColumn( name ... { ... @OneToMany(mappedBy = "department") @MapKey( name = " name ") public Map getEmployees ... @JoinColumn( name = "dept_id") public Department getDepartment() { ... } ... } Since: Jakarta Persistence (JPA | |
jakarta.persistence.NamedAttributeNode (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 ... this name . Default: "" Since: Jakarta Persistence (JPA) 1.0 String keySubgraph (Optional | |
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 ... = NameConverter.class) List names ; Example 5: Apply a converter to an element collection that is a map of basic | |
jakarta.persistence.EmbeddedId empName, Date birthDay) {} Example 2: @Embeddable public class DependentId { String name ... { // default column name for " name " attribute is overridden @AttributeOverride( name = " name ", column = @Column( name = "dep_ name ")) @EmbeddedId DependentId id; ... @MapsId("empPK") @ManyToOne Employee emp | |
jakarta.persistence.FieldResult"); @SqlResultSetMapping( name = "OrderResults", entities = { @EntityResult( entityClass = com.acme.Order.class, fields = { @FieldResult( name = "id", column = "order_id"), @FieldResult( name = "quantity", column = "order_quantity"), @FieldResult( name = "item", column = "order_item | |
jakarta.persistence.GeneratedValue") @Column( name = "CUST_ID") public Long getId() { return id; } Example 2: @Id @GeneratedValue(strategy = TABLE, generator = "CUST_GEN") @Column( name = "CUST_ID") Long id; See Also: GenerationType Id ... ) The name of the primary key generator to use, as specified by the SequenceGenerator or TableGenerator | |
Step 2: Entity Class and Persistence Unit) and selecting New Class . Enter guest as the package name - use exactly that case sensitive package name . Enter Guest as the class name - use exactly that case sensitive class name . Click Finish to create the new class. A new class that should represent Guest | |
jakarta.persistence.ManyToMany notation is the name of the respective embedded field or property. Example 1: // In Customer class: @ManyToMany @JoinTable( name = "CUST_PHONES") public Set getPhones() { return phones; } // In ... : @ManyToMany @JoinTable( name = "CUST_PHONE", joinColumns = @JoinColumn( name = "CUST_ID | |
jakarta.persistence.MappedSuperclass protected Integer empId; @Version protected Integer version; @ManyToOne @JoinColumn( name = "ADDR ... ) { ... } } @Entity @Table( name = "PT_EMP") @AssociationOverride( name = "address", joinColumns = @JoinColumn( name ... to PT_EMP.ADDR_ID fk @Column( name = "WAGE") protected Float hourlyWage; public PartTimeEmployee | |
jakarta.persistence.Entity . Annotation Elements String name (Optional) The entity name . Defaults to the unqualified name of the entity class. This name is used to refer to the entity in queries. The name must not be a reserved | |
jakarta.persistence.DiscriminatorColumn, the name of the discriminator column defaults to "DTYPE" and the discriminator type to DiscriminatorType.STRING . Example: @Entity @Table( name = "CUST") @Inheritance(strategy = SINGLE_TABLE) @DiscriminatorColumn( name = "DISC", discriminatorType = STRING, length = 20) public class Customer | |
jakarta.persistence.Index ::= column_ name [ASC | DESC] If neither ASC nor DESC is not specified, ASC , that is, ascending order ... name (Optional) The name of the index. Defaults to a provider-generated name . Default | |
jakarta.persistence.DiscriminatorValue is STRING , the discriminator value default is the entity name . The inheritance strategy ... , should be specified for each concrete entity class in the hierarchy. Example: @Entity @Table( name = "CUST") @Inheritance(strategy = SINGLE_TABLE) @DiscriminatorColumn( name = "DISC", discriminatorType | |
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 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 | |
jakarta.persistence.metamodel.ManagedType.getSingularAttribute(String) getSingularAttribute ( String name ) Return the single-valued attribute of the managed type that corresponds to the specified name . Parameters: name - the name of the represented attribute Returns: single-valued attribute with the given name . Throws: IllegalArgumentException | |
jakarta.persistence.metamodel.ManagedType.getDeclaredSingularAttribute(String) getDeclaredSingularAttribute ( String name ) Return the single-valued attribute declared by the managed type that corresponds to the specified name . Parameters: name - the name of the represented attribute Returns: declared single-valued attribute of the given name . Throws | |
[ODB1] Chapter 6 - Persistent Objects, Utilities.bind( ... ) . This method (discussed in the next section) enables the assignment of names ... ; Object IDs and Names Identifying database objects by unique IDs and by names is useful in object ... names , is not supported by JDO, but ObjectDB supports it as an extension because of its popularity in | |
Step 5: Add a JSP Page) and selecting New JSP ... Enter guest as the jsp file name - use exactly that case sensitive class name . The Folder should be WEB-INF (to prevent accessing the JSP directly not through Spring). Click ... content: JPA Guestbook Web Application Tutorial Name : The JSP generates the guestbook page output | |
Step 2: Define a JPA Entity Class) and selecting New Java Class ... Enter Point as the class name - use exactly that case sensitive class name . The package name should be tutorial . Click Finish to create the new class. Use copy | |
Step 6: Set the Spring XML (whose name is derived from the name of the Spring dispatcher servlet in web.xml ). To generate ... spring-servlet as the File Name . Click Finish to create the XML file. Now use  | |
Step 2: Define a JPA Entity Class To store objects in an ObjectDB database using JPA we need to define an entity class: Right click on the project in the [Package Explorer] window and select New Class . Enter tutorial as the package name (case sensitive). Enter Point as the class name (case sensitive). Click Finish to create | |
Spring MVC JPA Tutorial - IntelliJ Project , click the + icon and select Tomcat Server Local . Enter a name (e.g. Guestbook |