ObjectDB Database Search

51-100 of 200 results

Issue deploying J6EE/Eclipse/Glassfish example to TomEE 1.5.1

this Context . Unable to find [jboss]. at org.apache.naming.NamingContext.lookup(NamingContext.java:820

Configure ObjectDB in spring context

is to configure entire ObjectDB (optionally objectdb.conf too) in springs context .xml file so that I'd ... creating persistance.xml file. My previous database.xml (which is included in application- context .xml

Not Enhanced: ...: com.objectdb.o.TEX: Type ..._$$_javassist_1 is not found

Hello! ObjectDB logs these errors when I start the app and open the log in page. (see attachment) dk.mandecentret.boundary.AuthB is a @javax.enterprise. context .RequestScoped and dk.mandecentret.boundary.UserSessionB is @javax.enterprise. context .SessionScoped. AuthB contains UserSessionB

Puzzler: Not getting cascades on read from Spring context

. My best guess is that perhaps I have something misconfigured in my persistence.xml or my context . 

Apache Tomee 1.5.2: Failed to use JTA (TransactionManager is not found)

1 .5.2 with transaction-type="JTA". I don't have any configurations in Tomee (objectdb.jar is in ... application failed: C:\Users\Mircea\Documents\NetBeansProjects\natural7\target\natural7- 1 .0-SNAPSHOT ... .NameNotFoundException: Name [comp/TransactionManager] is not bound in this Context . Unable to find [comp]. at org

GlassFish 3.1.2.2/JBoss 7.1.1

). May be you have some ideas?  When we just try JBoss 7. 1 . 1 nothing works at all. Where I can get a real ... . webel Dr Darren Kelly As discussed in a previous forum thread - JBoss 7. 1 . 1 is expected to be supported ... there are also issues with GlassFish 3. 1 .2 (GlassFish 3. 1 . 1 may work better with ObjectDB

NoSuchFieldError: __odbTracker on NetBeans 7.3 + JBoss 7.1.1

+ Jboss 7. 1 . 1 @Entity public class Person extends AbstractObject { private static final long ... ); The exception: java.lang.NoSuchFieldError: __odbTracker test.City.__odbSet_name(City.java: 1 ) test.City.setName ... .interceptors.UserInterceptorFactory$ 1 .processInvocation(UserInterceptorFactory.java:36) org.jboss

Database Server

the icon and use the context menu to manage the server (stop, restart, and start) or to exit the server application.

JPA Listeners & Callbacks Annotations

the persistence context or refreshed. This is useful for initializing transient fields or performing post

jakarta.persistence.criteria.CriteriaUpdate

. The persistence context is not automatically synchronized with the result of the bulk update. A CriteriaUpdate object must have a single root. Since: Jakarta Persistence (JPA) 2. 1 Public Instance ... . Since: Jakarta Persistence (JPA) 1 .0 Root from ( EntityType entity ) Create and add a query root

jakarta.persistence.JoinColumn

CollectionTable ForeignKey Since: Jakarta Persistence (JPA) 1 .0 Annotation Elements String name (Optional) The name of the foreign key column. The table in which this column is found depends on the context ... Persistence (JPA) 1 .0 String referencedColumnName (Optional) The name of the column referenced by

jakarta.persistence.MapKeyColumn

) The name of the map key column. The table in which it is found depends upon the context . If the map key ... relationship field or property; " _ "; " KEY ". Default: "" Since: Jakarta Persistence (JPA) 1 .0 boolean ... and to constraints specified at the table level. Default: false Since: Jakarta Persistence (JPA) 1 .0

jakarta.persistence.MapKeyJoinColumn

and the default values apply. Example 1 : @Entity public class Company { @Id int id; ... @OneToMany ... upon the context . If the join is for a map key for an element collection, the foreign key column is in ... ; " _ "; " KEY ". Default: "" Since: Jakarta Persistence (JPA) 1 .0 String referencedColumnName (Optional

jakarta.persistence.criteria.CriteriaDelete

context is not synchronized with the result of the bulk delete. A CriteriaDelete object must have a single root. Since: Jakarta Persistence (JPA) 2. 1 Public Instance Methods Root from ( Class ... (JPA) 1 .0 Root from ( EntityType entity ) Create and add a query root corresponding to the entity

jakarta.persistence.EntityNotFoundException

and the persistence context has been joined to it, will be marked for rollback. See Also: EntityManager ... ) Since: Jakarta Persistence (JPA) 1 .0 Public Constructors EntityNotFoundException () Constructs a new EntityNotFoundException exception with null as its detail message. Since: Jakarta Persistence (JPA) 1

jakarta.persistence.EntityExistsException

, if one is active and the persistence context has been joined to it, will be marked for rollback. See Also: EntityManager.persist(Object) Since: Jakarta Persistence (JPA) 1 .0 Public Constructors ... . Since: Jakarta Persistence (JPA) 1 .0 EntityExistsException ( String message ) Constructs a new

jakarta.persistence.NamedQuery

can be applied to an entity class or mapped superclass. Since: Jakarta Persistence (JPA) 1 .0 The JPA Named ... (JPA) 1 .0 String query (Required) The query string in the Jakarta Persistence query language. Since: Jakarta Persistence (JPA) 1 .0 Class resultClass (Optional) The class of each query result. The result

jakarta.persistence.PersistenceException

, if one is active and if the persistence context has been joined to it, to be marked for rollback. Since: Jakarta Persistence (JPA) 1 .0 Public Constructors PersistenceException () Constructs a new PersistenceException exception with null as its detail message. Since: Jakarta Persistence (JPA) 1 .0

[ObjectDB 2.4.1] Unexpected exception (Error 990)

Hi, getting this unexpected exception, would welcome advice: [ObjectDB 2.4. 1 ] Unexpected exception (Error 990)   Generated by Java HotSpot(TM) Client VM 1 .6.0_29 (on Windows 7 6. 1 ... .runners.model.FrameworkMethod$ 1 .runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners

jakarta.persistence.EntityManager.merge(T)

context , resulting in, respectively, an insert or possible update when the persistence context ... to this persistence context , and has not been marked for removal, it is itself ignored, but the operation ... PersistenceContextType.TRANSACTION . Since: Jakarta Persistence (JPA) 1 .0

jakarta.persistence.PersistenceUnit

and its associated persistence unit. Since: Jakarta Persistence (JPA) 1 .0 Annotation Elements String name ... referencing context ; not needed when dependency injection is used. Default: "" Since: Jakarta Persistence (JPA) 1 .0 String unitName (Optional) The name of the persistence unit as defined in the persistence

jakarta.persistence.PersistenceContexts

to express a dependency on container-managed entity manager persistence contexts . See Also: PersistenceContext Since: Jakarta Persistence (JPA) 1 .0 Annotation Elements PersistenceContext[] value (Required) One or more PersistenceContext annotations. Since: Jakarta Persistence (JPA) 1 .0 Additional JDK

jakarta.persistence.MappedSuperclass

are interpreted in the context of each entity class which inherits the mapped superclass ... ) { ... } } See Also: AttributeOverride AssociationOverride Since: Jakarta Persistence (JPA) 1 .0 Annotation Elements

jakarta.persistence.criteria.CriteriaBuilder

: absolute value. Since: Jakarta Persistence (JPA) 1 .0 Expression all ( Subquery subquery ) Create ... . Since: Jakarta Persistence (JPA) 1 .0 Predicate and ( Expression x , Expression y ) Create a conjunction ... : and predicate. Since: Jakarta Persistence (JPA) 1 .0 Predicate and ( Predicate... restrictions

jakarta.persistence.PersistenceContext.type

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceContext PersistenceContextType type (Optional) Specifies whether a transaction-scoped persistence context or an extended persistence context is to be used. Default: PersistenceContextType.TRANSACTION Since: Jakarta Persistence (JPA) 1 .0

jakarta.persistence.PersistenceContext.synchronization

synchronization (Optional) Specifies whether the persistence context is always automatically synchronized with the current transaction or whether the persistence context must be explicitly joined ... : SynchronizationType.SYNCHRONIZED Since: Jakarta Persistence (JPA) 2. 1

jakarta.persistence.EntityManager.contains(Object)

to the current persistence context . Parameters: entity - entity instance Returns: boolean value indicating if entity belongs to the persistence context . Throws: IllegalArgumentException - if not an entity. Since: Jakarta Persistence (JPA) 1 .0

jakarta.persistence.EntityManager.persist(Object)

the database when the persistence context is synchronized with the database, or make a removed entity ... is already managed, that is, if it already belongs to this persistence context , and has not been marked ... PersistenceContextType.TRANSACTION . Since: Jakarta Persistence (JPA) 1 .0

GROUP BY and HAVING clauses

SUBSTRING(c.name, 1 , 1 ) FROM Country c GROUP BY SUBSTRING(c.name, 1 , 1 ); The FROM clause iterates ... : SELECT DISTINCT SUBSTRING(c.name, 1 , 1 ) FROM Country c GROUP BY with aggregate functions JPQL supports ... and the number of distinct currencies that those countries use: SELECT SUBSTRING(c.name, 1 , 1 ), COUNT(c), COUNT

jakarta.persistence.StoredProcedureQuery.executeUpdate()

() Return the update count of - 1 if there is no pending result or if the first result is not an update count. The provider will call execute on the query if needed. Returns: the update count or - 1 ... back. TransactionRequiredException - if there is no transaction or the persistence context has not been joined

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

jakarta.persistence.TypedQuery.getSingleResult()

and there is no transaction or the persistence context has not been joined to the transaction. Since: Jakarta Persistence (JPA) 1 .0

jakarta.persistence.TypedQuery.getResultList()

- if a lock mode other than NONE has been set and there is no transaction or the persistence context has not ... timeout value set and only the statement is rolled back. Since: Jakarta Persistence (JPA) 1 .0

jakarta.persistence.JoinColumn.name

Jakarta Persistence (JPA) Method in jakarta.persistence.JoinColumn String name (Optional) The name of the foreign key column. The table in which this column is found depends on the context ... of the entity; " _ "; the name of the referenced primary key column. Default: "" Since: Jakarta Persistence (JPA) 1 .0

jakarta.persistence.PersistenceContextType.TRANSACTION

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.PersistenceContextType TRANSACTION Transaction-scoped persistence context Since: Jakarta Persistence (JPA) 1 .0

jakarta.persistence.PersistenceContextType.EXTENDED

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.PersistenceContextType EXTENDED Extended persistence context Since: Jakarta Persistence (JPA) 1 .0

jakarta.persistence.EntityManager.joinTransaction()

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager void joinTransaction() Indicate to the entity manager that a JTA transaction is active and join the persistence context ... - if there is no active transaction. Since: Jakarta Persistence (JPA) 1 .0

jakarta.persistence.EntityManager.close()

is joined to an active transaction, the persistence context remains managed until the transaction completes. Throws: IllegalStateException - if the entity manager is container-managed. Since: Jakarta Persistence (JPA) 1 .0

jakarta.persistence.EntityManager.setFlushMode(FlushModeType)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager void setFlushMode (    FlushModeType flushMode ) Set the flush mode that applies to all objects contained in the persistence context . Parameters: flushMode - flush mode Since: Jakarta Persistence (JPA) 1 .0

jakarta.persistence.EntityManager.getFlushMode()

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager FlushModeType getFlushMode() Get the flush mode that applies to all objects contained in the persistence context . Returns: the current FlushModeType . Since: Jakarta Persistence (JPA) 1 .0

jakarta.persistence.EntityManager.lock(Object,LockModeType)

to the persistence context , obtaining the specified lock mode . If a pessimistic lock mode type is specified ... to the current transaction. Since: Jakarta Persistence (JPA) 1 .0

jakarta.persistence.EntityManager.clear()

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager void clear() Clear the persistence context , causing all managed entities to become detached. Changes made to entities that have not already been flushed to the database will never be made persistent. Since: Jakarta Persistence (JPA) 1 .0

jakarta.persistence.SynchronizationType.SYNCHRONIZED

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.SynchronizationType SYNCHRONIZED Persistence context is automatically synchronized with the current transaction Since: Jakarta Persistence (JPA) 1 .0

jakarta.persistence.SynchronizationType.UNSYNCHRONIZED

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.SynchronizationType UNSYNCHRONIZED Persistence context must be explicitly joined to the current transaction Since: Jakarta Persistence (JPA) 1 .0

jakarta.persistence.MapKeyColumn.name

Jakarta Persistence (JPA) Method in jakarta.persistence.MapKeyColumn String name (Optional) The name of the map key column. The table in which it is found depends upon the context . If the map key ... relationship field or property; " _ "; " KEY ". Default: "" Since: Jakarta Persistence (JPA) 1 .0

jakarta.persistence.MapKeyJoinColumn.name

upon the context . If the join is for a map key for an element collection, the foreign key column is in ... of the referencing relationship property or field of the referencing entity or embeddable class; " _ "; " KEY ". Default: "" Since: Jakarta Persistence (JPA) 1 .0

jakarta.persistence.EntityManager.remove(Object)

the database when the persistence context is synchronized with the database. This operation cascades ... - if invoked on a container-managed entity manager of type PersistenceContextType.TRANSACTION and there is no transaction. Since: Jakarta Persistence (JPA) 1 .0

jakarta.persistence.EntityManager.find(Class,Object)

of the specified class and primary key. If the entity instance is contained in the persistence context ... for that entity's primary key or is null. Since: Jakarta Persistence (JPA) 1 .0

[ODB1] Chapter 2 - A Quick Tour

, step by step. Both sample programs are contained in ObjectDB's samples directory. 2. 1    ... of the second run is expected to be: Hello World 0 Hello World 1 After two runs, the database contains a list of two strings "Hello World 0" and "Hello World 1 ". Program Source Code The program consists