About constructor

manual

Defining a JPA Entity Class

Shows how to define a JPA entity class in order to store objects in the database.... x ; private int y ;   // Constructor: Point ( int x, int y ) { ...

 
issue

@FetchGroup in JPA similar to JDO

I was checking what's new in different JPA implementation on the market and found quite interesting two features. First of those features is described in this ticket. It's similar to FetchGroup from JDO. It works like this. First you specify attributes to fetch from database: Feature Request Version: Priority: Normal Status: Active Replies: 0 Type:  Feature Request ...

 
doc

getCause()

Returns the cause of this throwable or null if the cause is nonexistent or unknown.(Method of java.lang.Throwable)

 
forum_thread

can't get HashMap out of the database

I'm trying to persist an Entity containing a HashMap. It stores the data in the database OK, but the map is always empty when I get the entity out of the database again. I've reproduced this problem in a simple variation of the Guestbook tutorial: Guest class: ===================== #1 2011-11-04 09:35 I'm trying to persist an Entity containing a HashMap. It stores the data in the database OK, but the map is a ...

 
api-jdo

toString()

Return the String form of the object id.(Method of javax.jdo.identity.ObjectIdentity)

 
tutorial

Step 2: Entity Class and Persistence Unit

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 project node (in the [Package Explorer] window) and selecting  New > ...

 
doc

initCause(cause)

Initializes the cause of this throwable to the specified value.(Method of java.lang.Throwable)

 
forum_thread

Criteria query error: Unexpected query token

Using JPA2, I can save entities now in JBoss, and also fetch them uniquely by id. However, if I try to fetch it by getting back all instances (e.g. findAll, I get the following error:   ... is expected) [Proxied because : Could not find suitable constructor] at ...

 
api-jpa

multiselect(selections)

Specify the selection items that are to be returned in the query result.(Method of javax.persistence.criteria.CriteriaQuery)

 
forum_thread

NullPointerException while setting a new property value

Hello, we are using ObjectDB version 2.4.4 and we are unable to resolve following NPE on enhanced entity: java.lang.NullPointerException at com.objectdb.o.ENT.beforeModifyMember(ENT.java:1099) at model.PluginMetaData.__odbSet_maxAllowedDownloads(PluginMetaData.java:1) at model.PluginMetaData.setMaxAllowedDownloads(PluginMetaData.java:268) at model.PluginMetaData.setPluginDescriptor(PluginMetaData.java:94) PluginMetaData looks like this (nothing extraordinary, no relationship to other @entities): #1 2012-10-22 22:34 Hello, we are using ObjectDB version 2.4.4 and we are unable to resolve following NPE on enhanced entity: ...