About persist

tutorial

Java EE 6 Web Tutorial

This tutorial demonstrates how to create and run a full Java EE 6 MVC (Model View Controller) web application in Eclipse - using GlassFish, ObjectDB and JPA. This tutorial demonstrates how to create and run a full Java EE 6 MVC (Model View Controller) web application using GlassFish, ObjectDB and JPA. Since this web application uses Java EE 6 EJB (session beans) it requires a full Java EE 6 applic ...

 
forum_thread

Add class to objectdb ?

Hello , i've made blank db project and opened with explorer.jar How can i add class file then push objects manually by explorer.jar   It only gave me blank : http://img543.imageshack.us/img543/7463/screenshot20130203at001.png       ... I've clicked on create & persist button. Here is the problem i got : Exception in thread ...

 
forum_thread

find repeated records by JPQL

Hi, I know a single command in MySQL can find repeated records: Select * from TTT t where id in (select id from TTT s group id having count(id)>1) I dont know how to do this using JPQL, but I use query from 430,000 records and put them into hashmap, finally it cost one hour and failed: #1 2011-08-18 14:09 Hi, I know a single command in MySQL can find repeated records: SELECT * FROM TTT t WHERE ...

 
forum_thread

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<String, String> { (...) }     #1 2013-01-09 15:04 Hi, Should it be possible to create an Embeddable class that extends HashMap (or Set etc.)? I can user Ha ...

 
api-jpa

JPA Annotations for Value Generation

Reference (JavaDoc) of JPA 2 value generation annotations, including @GeneratedValue, @SequenceGenerator and @TableGenerator. Automatically generated values are mainly useful for primary key fields, but are supported by ObjectDB also for regular (non primary key) persistent fields. At the field level, the @GeneratedValue with an optional GenerationType strat ...

 
forum_thread

finding post-persist pre-commit objects

Hi, I'm wondering if there is a way to have post-persisted, pre-committed, objects show up in queries? ie: the object has been persisted, but not yet committed. Dave   #1 2014-06-19 00:17 Hi, I'm wondering if there is a way to have post-persisted, pre-committed, objects show up in queries? ...

 
api-jdo

isDirty(pc)

Tests whether this object is dirty.(Method of javax.jdo.spi.StateManager)

 
issue

evalution limit error on digital ocean ubuntu

Trying to run the code on Digital Ocean Ubuntu instance. Generated license and set key in objectdb conf file. It gives below exceeds evaluation error when we try to run the code. Caused by: com.objectdb.o.UserException: Too many persistable types (>10) - exceeds evaluation limit at com.objectdb.o.MSG.d(MSG.java:61) ~[objectdb-2.5.4.jar:na] at com.objectdb.o.MST.UC(MST.java:1090) ~[objectdb-2.5.4.jar:na] at com.objectdb.o.WRA.UC(WRA.java:213) ~[objectdb-2.5.4.jar:na] at com.objectdb.o.TYS.x(TYS.java:768) ~[objectdb-2.5.4.jar:na]... ~[objectdb-2.5.4.jar:na] at com.objectdb.jpa.EMImpl.persist(EMImpl.java:434) ~[objectdb-2.5.4.jar:na] at ... at com.objectdb.jpa.EMImpl.persist(EMImpl.java:434) edit ...

 
api-jdo

Constants.PMF_ATTRIBUTE_COPY_ON_ATTACH

The name of the persistence manager factory element's "copy-on-attach" attribute.(Static Field of javax.jdo.Constants)

 
forum_thread

'com.objectdb.o._EntityNotFoundException' vs 'javax.persistence.EntityNotFoundException'

Hello  When I try to catch the EntityNotFoundException, instead of  javax.persistence.EntityNotFoundException a com.objectdb.o._EntityNotFoundException is thrown, which seemed not to be a subclass of the 'javax.persistence.EntityNotFoundException'. Is there any reason for that behavior.  How can I make the source JPA conform?   best regards Arne     #1 2013-12-15 23:00 Hello  When I try to catch the EntityNotFoundException, instead of  javax. persistence ...