About access

api-jpa

JPA Annotations for Access Modes

Reference (JavaDoc) of JPA 2 access mode annotations, including @Access and AccessType (enum).... JPA 2 provides an annotation and an enum for setting the access mode: javax.persistence.Access javax.persistence.AccessType More details are ...

 
manual

JPA Entity Fields

Explains how to define and use primary keys in JPA, including composite and embedded primary keys.... Fields Version Field Property Access Primary key fields are discussed in the Primary ... version field is explicitly defined. Property Access When an entity is being stored to the database data is extracted ...

 
manual

Server User List

Explains how to define and set users, directories and permissions in the ObjectDB fast Java database server for JPA/JDO.... configuration element lists the users that are allowed to access the ObjectDB Server and specifies their specific settings (username, ... > <dir path = "/" permissions = "access,modify,create,delete" /> </user > <user ...

 
api-jpa

javax.persistence.Access

Used to specify an access type to be applied to an entity class, mapped superclass, or embeddable class, or to a specific attribute of such a class.(Annotation of JPA)

 
api-jpa

javax.persistence.AccessType

Is used with the Access annotation to specify an access type to be applied to an entity class, mapped superclass, or embeddable class, or to a specific attribute of such a class.(Enum of JPA)

 
manual

Retrieving JPA Entity Objects

Explains how to use JPA to retrieve entity objects from the database.... by Eager Fetch Retrieval by Navigation and Access Retrieval by Query Retrieval by Refresh ... automatically. Retrieval by Navigation and Access All the persistent fields of an entity object can be accessed ...

 
forum_thread

Multi-thread access to single EM's entities

If my entity classes have synchronized getters and setters, is it reliable for multiple threads to access a single EM's managed entities, as long as only the thread that created the EM interacts directly with it?  I've tested this and it seems to work... but I know better than to depend on the observable behavior of multithreaded code. When I run this example and examine the database, the entity contains the value set by the second thread, as expected.   ... and setters, is it reliable for multiple threads to access a single EM's managed entities, as long as only the thread that ... question. Apparently it should work fine if you access persistent fields only from the synchronized get/set methods (and the ...

 
faq

Can I use ObjectDB to access a relational database?

To access relational databases using the Java Persistence API (JPA) you will need ... an ORM tool, so it is not intended and cannot be used to access other database management systems. ...

 
issue

NullPointer when accessing persistent field

I am afraid this is a large and complex example, and I do not encounter the problem in simple cases, therefore there is no example attached. I appreciate this may make the bug unreproduceable from your end.   Bug Version: 2.3.2 Priority: Normal Status: Fixed Replies: 7 Type:  Bug ...

 
forum_thread

TemporalType injection with Calendar using JPA

I have ObjectDB  JPA  comsummed by a RESTful web service deployed on Tomcat. I am using an embedded object as a primary key, which has time fields which I have annotated with TemporalType.TIMESTAMP When I use a java.util.Date as a field on this object there is no problem. However, if I use a java.util.Calendar it encounters an exception.   Calendar is what I need.  Is there something obvious here that I am failing to see?   ...   @ Embeddable @ Access ( AccessType . PROPERTY ) public class ... in this Entity class @ Entity @ Access ( AccessType . PROPERTY ) public class ...