About API

forum_thread

Access ClassTransformer

Hello, As in our OSGI Environment, we do need to manually weave classes. To be able to do so, we'd need access to the ClassTransformer from ObjectDB. However, there's only the global enhancer api which is not of any help. There's the JEhancerAgent which seems to implement a ClassTransformer as well though not sure whether to use that one..? Thanks! Alex ... ObjectDB. However, there's only the global enhancer api which is not of any help. There's the JEhancerAgent which seems to ...

 
manual

Database Connection using JPA

Describes the main JPA interfaces: EntityManagerFactory, EntityManager and EntityTransaction. Working with the Java Persistence API (JPA) consists of using the following interfaces: This page covers ...

 
forum_thread

Apparent Lazy Loading issues.

Hi, Thanks for the quick investigation. That has indeed fixed that issue. However there appear to be two more. ... Second issue. The docs at: http://www.objectdb.com/api/java/jpa/OneToMany state: "When the collection is a java.util.Map, the ...

 
forum_thread

Class fields selection to store

In a class how do I define which are the fields to be stored? (using JDO API) It's using persistence-modifier="persistent" ? If I have a class with 40 fields and I only want to store one of the fields should I do the following? <class name="Car">    <field name="Wheels" persistence-modifier="persistent" /> </class> Which are the value used for fields that I do not want to store? ... do I define which are the fields to be stored? (using JDO API) It's using persistence-modifier="persistent" ? If ...

 
api-jpa

get(attributeName)

Create a path corresponding to the referenced attribute.(Method of javax.persistence.criteria.Path)

 
api-jpa

setLockMode(lockMode)

Set the lock mode type to be used for the query execution.(Method of javax.persistence.TypedQuery)

 
api-jpa

javax.persistence.criteria.Selection

The Selection interface defines an item that is to be returned in a query result.(Interface of JPA)

 
forum_thread

using objectdb.jar in writing data to mariadb or mysql db

Hello All, ... to write to mariadb or mysql using native java JPA API and in some cases JPQL or must i store to an Objectdb unique database? ...

 
api-jpa

javax.persistence.OptimisticLockException

Thrown by the persistence provider when an optimistic locking conflict occurs.(Exception of JPA)

 
forum_thread

does ObjectDB / JPA support simple password field encryption of an entity class?

We are persisting certain passwords entered by user in a form binded with an entity. Is there any direct ObjectDB support to just encrypt the password field? We would like to either encrypt or make it unreadble when object DB database file is opened. There are many standard Password based encryption (PBE) api's supported by Java. But we are looking for a simple approach as we have just have one or two passwords field of an entity to protect. Appreciate any suggestions, Thanks. ... There are many standard Password based encryption (PBE) api's supported by Java. But we are looking for a simple approach as we ...