ObjectDB Database Search

1-50 of 200 results

How to Use a SF with extended Persistence Context?

one using the persist method of the GuestDao. I use Jboss AS 7 and when I run the project I ...   [org. jboss .msc] JBoss MSC version 1.0.2.GA 13:52:01,347 INFO  [org. jboss . as ] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting 13:52:01,959 INFO  [org.xnio] XNIO Version 3.0.3.GA 13

Jboss 6 persistence.xml startup error

out feasibility, but I keep getting stuck on setting up the persistence.xml on JBoss 6 AS . Here is my setup ... There were a few issues in using ObjectDB with JBoss AS 6.0. The good news is that a new build of ObjectDB that was just released (2.2.0_03) fixes the main problems and seems to work well with JBoss AS 6.0

GlassFish 3.1.2.2/JBoss 7.1.1

. webel Dr Darren Kelly As discussed in a previous forum thread - JBoss 7.1.1 is expected to be supported ... AS 7.1.1 and ObjectDB is my preferred database solution. I would like to know if support for JBoss ... for me since it lacks Java EE 6 full profile support.     n0mad Zakaria Yussuf Hopefully JBoss AS 7

Extended HashMap as Embeddable class

Hi, Should it be possible to create an Embeddable class that extends HashMap (or Set etc.)? I can user HashMaps  as parameter type in entities, but when I extend it and annotate it with @Embeddable annotation - I get an error. @Embeddable public class A extends HashMap { (...) }    

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 ... of the previous query are returned as a list of String values: TypedQuery query = em. createQuery ( "SELECT

Apache License, Version 2.0, January 2004

the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 ... mean the work of authorship, whether in Source or Object form, made available under the License, as ... , elaborations, or other modifications represent, as a whole, an original work of authorship

JPA Entity Fields

and final entity fields are always considered transient. You can declare other fields as transient by using ... declared type, including a generic java.lang.Object , as long as the actual runtime value ... , such as Hibernate, or for changing default field settings. For example: @Entity public class

Database Management Settings

environments. By default, the recovery file is created in the same directory as the database file ... file on separate storage devices, such as different disks, can improve performance. The max attribute ... default, a recording subdirectory is created in the same directory as the database file

Database Transaction Replayer

default, the recording directory is created in the same directory as the database file. If the purpose ... of a specific transaction. The transaction ID is used as the file name. A recording file ... file, such as my.odb in the example above. ObjectDB automatically locates the corresponding backup

Storing JPA Entities

. getTransaction (). commit (); The Employee instance is constructed as an ordinary Java object ... of other persistable types can be stored in the database only as embedded objects in containing ... of persistable types other than entity classes are automatically stored as embedded objects in

JPA Criteria Query Expressions

interfaces is structured as follows: Selection # Base interface for result items └─ Expression # Base ... ;to allow using expression as query results. A boolean expression used to define restrictions in

JPA Lifecycle Events

only in a mapping XML file, such as orm.xml ; there is no equivalent annotation: This mapping file ... classes. The invocation order for listeners is as follows: default listeners, listeners

Setting and Tuning of JPA Queries

can easily make uncommitted changes visible for simple operations, such as find . However, query ... ) or "LAZY" . When LAZY is used, result entities are returned as references with no content

Server Configuration

The configuration element specifies settings for running an ObjectDB Server . The server is also affected by other elements in the configuration file, such as the and elements. The default ... the connection URL string, as explained in the JPA Overview section. The max attribute specifies

jakarta.persistence.EntityManager

management of the EntityManager and its associated resource-local EntityTransaction is as follows ... under the control of the persistence provider. Any entity instance can be characterized as being in ... to its persistent fields and properties are automatically detected, as long as it is associated with an active

JPA Named Queries Annotations

to the persistence provider within a @NamedQuery . Hints can control behavior such as query timeouts

[ODB1] Chapter 6 - Persistent Objects

When a new object is constructed by the new operator, it always starts as a transient object, regardless of its type. Instances of persistent classes can become persistent later, as demonstrated by ... .currentTransaction().commit(); First, the Person instance is constructed as a simple transient object

jakarta.persistence.MapKey

of the map. If a persistent field or property other than the primary key is used as a map key ... of the associated entity that is used as the map key. Default: If the name element is not specified, the primary key of the associated entity is used as the map key. If the primary key is a composite primary

jakarta.persistence.ConstructorResult

, passing in as arguments values from the specified columns. All columns corresponding to arguments ... annotation in the same order as that of the argument list of the constructor. Any entities returned as ... , " + "COUNT(o) as orderCount, " + "AVG(o.price) AS avgOrder " + "FROM Customer c, Orders o

jakarta.persistence.EntityGraph

that will be used as a template to define the attribute nodes and boundaries of a graph of entities ... the corresponding attribute nodes as well; such attribute nodes should not be redundantly specified ... ) Remove an attribute node from the entity graph. When this graph is interpreted as a load graph

jakarta.persistence.ColumnResult

.createNativeQuery( "SELECT o.id AS order_id, " + "o.quantity AS order_quantity, " + "o.item AS order_item, " + "i.name AS item_name, " + "FROM Order o, Item i " + "WHERE (order_quantity 25

jakarta.persistence.EntityManagerFactory

name , Query query ) Define the query, typed query, or stored procedure query as a named query ... (except for actual parameter binding) in effect when the named query is added is retained as part of the named query definition. This includes configuration information such as max results, hints, flush mode, lock

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 ... Folder and clicking Next ). Select the project src folder as a parent folder, enter META-INF as a new

jakarta.persistence.Graph

graph. When this graph is interpreted as a load graph, this operation suppresses inclusion ... the entity graph. When this graph is interpreted as a load graph, this operation suppresses inclusion ... of the given attribute types. When this graph is interpreted as a load graph, this operation suppresses

jakarta.persistence.LockModeType

as an argument to: one of the methods of EntityManager which obtains locks ( lock() , find() , or ... -versioned entities as well as with versioned entities. When the lock cannot be obtained

jakarta.persistence.Converter

and must be annotated with the Converter annotation or declared as a converter in the object/relational ... to an attribute, the provider must treat primitive types and wrapper types as equivalent. A converter ... annotated Enumerated or Temporal (or designated as such via XML). A converter never applies to any

jakarta.persistence.Embeddable

: Annotation Target: Type Declares a type whose instances are stored as an intrinsic part of an owning entity, sharing the identity of the entity. A single embeddable type may be used as the type ... methods or persistent instance variables. An enum or interface may not be designated as

jakarta.persistence.DiscriminatorType

.discriminatorType Since: Jakarta Persistence (JPA) 1.0 Enum Constants CHAR Single character as the discriminator type. Since: Jakarta Persistence (JPA) 1.0 INTEGER Integer as the discriminator type. Since: Jakarta Persistence (JPA) 1.0 STRING String as the discriminator type. Since: Jakarta Persistence (JPA

jakarta.persistence.FieldResult

.createNativeQuery( "SELECT o.id AS order_id, " + "o.quantity AS order_quantity, " + "o.item AS order_item

jakarta.persistence.PessimisticLockException

may be thrown as part of an API call, a flush or at commit time. The current transaction, if one is active ... PessimisticLockException () Constructs a new PessimisticLockException exception with null as its detail message

jakarta.persistence.JoinTable

side of the association). Uses the same defaults as for JoinColumn . Default: {} Since: Jakarta Persistence (JPA ... side of the association). Uses the same defaults as for JoinColumn . Default: {} Since: Jakarta Persistence

jakarta.persistence.InheritanceType

together with the root class, and each entity instance is stored as a single table row. The concrete subclass ... the hierarchy has its own table, and each entity instance is stored as a single table row. No discriminator

jakarta.persistence.JoinColumn

is for an element collection, the join column name is formed as the concatenation of the following ... (only applies if single join column is being used): The same name as the primary key column

jakarta.persistence.LockTimeoutException

transaction rollback. This exception may be thrown as part of an API call, at, flush or at commit time ... exception with null as its detail message. Since: Jakarta Persistence (JPA) 1.0 LockTimeoutException

jakarta.persistence.NamedAttributeNode

of this element is the name of the subgraph as specified by the name element of the corresponding ... subclass subgraphs. The value of this element is the name of the key subgraph as specified by

jakarta.persistence.Convert

attributes, of relationship attributes, or of attributes explicitly declared as Enumerated or ... , must be used as the value of the attributeName element to specify that it is the map key or map value

jakarta.persistence.Entity

interface may not be designated as an entity. An entity has a primary table, mapped using the Table ... . An entity class holds state, represented as persistent fields and properties: a field or property of basic

jakarta.persistence.EntityNotFoundException

EntityNotFoundException exception with null as its detail message. Since: Jakarta Persistence (JPA) 1 ... with null as its detail message. Since: Jakarta Persistence (JPA) 1.0 EntityNotFoundException ( String

jakarta.persistence.Enumerated

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Enumerated Implemented Interfaces: Annotation Target: Method, Field Specifies that a persistent property or field should be persisted as ... is an enum type. An enum can be mapped as either a string or an integer , where EnumType enumerates

jakarta.persistence.EnumType

how to use EnumType . Enum Constants ORDINAL Persist enumerated type property or field as an integer ... () member. Since: Jakarta Persistence (JPA) 1.0 STRING Persist enumerated type property or field as

Step 4: Add a Controller Class

) and selecting  New Class . The package name should be  guest . Enter  GuestController as ... ); } } The GuestController class is defined as a Spring managed web controller using the @Controller annotation ... object defines a target JSP ( "guest.jsp" ) and passes the GuestDao component to the JSP as a request

Spring MVC and JPA Tutorial

that has signed the guestbook is represented as Guest JPA entity, and all Guest entities are stored in an ObjectDB database. This tutorial is available in the following versions: In addition, the demonstrated application is available as a Maven project:

Report Generation with BIRT and JPA

This tutorial demonstrates how to create reports based on data in an ObjectDB database using the popular open source Business Intelligence and Reporting Tools (BIRT). In order to keep things as simple as possible - we will use the basic  points.odb ObjectDB database file from the Getting

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

Step 5: Add a JSP Page

In this step we will add the JSP that generates the guestbook HTML output: Open the [New JSP File] dialog box by right clicking the WEB-INF node under the Web Pages node (in the [Projects] window) and selecting New JSP ... Enter guest as the jsp file name - use exactly that case sensitive class

Eclipse/JPA Spring MVC Web Tutorial

.6.1 but it should work with other Eclipse versions as well (dialog boxes and menus might look

JPA Web App Tutorial - Maven Project

, you may download and run the result application as a Maven project: JPA Web App - Maven Project (6KB

Step 2: Define a JPA Entity Class

To store objects in an ObjectDB database using JPA we need to define an entity class: Open the [New Java Class] dialog box, e.g. by right clicking the tutorial package node (in the [Projects] window) and selecting New Java Class ... Enter Point as the class name - use exactly that case sensitive

Step 6: Set the Spring XML

  spring-servlet as the File Name. Click  Finish to create the XML file. Now use 

Step 4: Add a Servlet Class

. Enter GuestServlet as the class name - use exactly that case sensitive class name. Click Finish