ObjectDB Database Search

1-50 of 200 results

JPA 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.UniqueConstraint.name

Jakarta Persistence (JPA) Method in jakarta.persistence.UniqueConstraint String name (Optional) The name of the constraint. Defaults to a provider-generated name . Default: "" Since: Jakarta Persistence (JPA) 2.0

jakarta.persistence.Table.name

Jakarta Persistence (JPA) Method in jakarta.persistence.Table String name (Optional) The name of the table. Defaults to the entity name . Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TableGenerator.name

Jakarta Persistence (JPA) Method in jakarta.persistence.TableGenerator String name (optional) A unique generator name that can be referenced by one or more classes to be the generator for id values. Defaults to the name of the entity when the annotation occurs on an entity class or primary key

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

Schema Update

... ... A element has two roles: If you specify the optional new- name attribute, the package name changes from the original name (specified by the required name attribute) to the new name . All classes in that package are moved to the new package. Additionally, regardless of whether a new- name attribute

Getting a list of all the entity class names

I was wondering if there is any way to get a list of the entity names in the database? dmoshal ... the manual. support Support Actually, there is a simpler way to get the class names (in one line of code ... it to get entity names or class names - which is not the same). support Support

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

FROM clause (JPQL / Criteria API)

By default, the name of an entity class in a JPQL query is the unqualified name of the class (for example, Country with no package name ). The default name can be overridden by specifying another name explicitly in the name element of the @Entity annotation. Multiple range variables are allowed

JPA Persistable Types

, package, or private ), and it can be either concrete or abstract. Entity class names Entity classes are represented in queries by entity names . By default, the entity name is the unqualified name of the entity class (that is, the short class name without the package name ). A different entity 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

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

Strings in JPQL and Criteria Queries

: c. name LIKE '_r%' is TRUE for 'Brazil' and FALSE for 'Denmark' . c. name LIKE '%' is always TRUE (for any c. name value). c. name NOT LIKE '%' is always FALSE (for any c. name value). To match a literal ... : // Create path and parameter expressions: Expression path = country. get (" name "); Expression param = cb

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

Index Definition

; // unique @Index ( name ="i3") int indexedField3; @Unique Integer indexedField4; // unique @Unique ( name ="u2") Date indexedField5; // unique } The @Unique annotation defines a unique index ... . The optional name attribute has no specific function but might appear in the ObjectDB Explorer and in log

jakarta.persistence.EntityManager

( 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

ObjectDB License Agreement [ver. 2.0.4]

written approval. 7. ObjectDB Software may use the Customer name , logo and domain name in press releases

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

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 graph entityGraph - entity graph Since: Jakarta Persistence (JPA) 2.1 void addNamedQuery ( String name , Query 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

JPA Attributes Annotations

as map keys: Specifies whether an enum should be persisted by its ordinal value or its string name

JPA Metamodel Types

superclasses. Represents an  @Entity class in the domain model, providing access to the entity's name

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

Feature request: helpdesk user can change issue or support ticket page title/name

Feature request: helpdesk user can change issue or support ticket page title/name

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

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

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 3: Add a Context Listener Class

Other... Web Listener and clicking Next . The Java package name should be guest. Enter GuestListener as the class name - use exactly that case sensitive class name . Click Next and then Select All to enable

Step 1: Create a Java Project

New Project... Select Java Java Application and click Next . Choose a Project Name (e.g. Tutorial ). The name of the Main class should be tutorial.Main . Verify that exactly this case sensitive fully qualified class name is set (you may use copy & paste). Click the Finish button to create

Step 6: Set the Spring XML

configuration is set in another XML file (whose name is derived from the name of the Spring dispatcher ... -servlet as the File Name . The Folder should be src\main\webapp\WEB-INF. Click Next and then Finish

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

Step 1: Create a Maven Web Project

We start by creating a new Maven web project in NetBeans: Open the [New Project] dialog box, e.g. by using File New Project... Select Maven Maven Web Application and click Next . Choose a Project Name (e.g. Guestbook ) and select Java EE 5. Enter Maven Group Id (e.g. com.objectdb.tutorial.spring

Step 1: Create a Java EE 6 Web Project

We start by creating a new Java EE dynamic web project in Eclipse: Open the [New Project] dialog box, e.g. by using File New Project... Select Web Dynamic Web Project and click Next . Choose a Project Name (e.g. Guestbook ). Select GlassFish Server Open Source Edition 3 (Java EE 6) as the Target