About getting started

forum_thread

Problem undeploying Glassfish3.1.1 web application cleanly

objectdb-2.3.7_18 When I undeploy a Glassfish3.1.1 web application when using @PersistenceContext EntityManager injection, using the undeploy feature under the Glassfish server node  of Netbeans7.1, I get the following otherwise harmless error: ... because it has not yet been started, or was already stopped at ...

 
forum_thread

Not able to update records

Hi,   I am tring to update the simple object by using Update query by i am getting following exception [ObjectDB 2.4.4_15] javax.persistence.TransactionRequiredException Attempt to run update query when no transaction is active (error 611) at com.objectdb.jpa.JpaQuery.executeUpdate(JpaQuery.java:758) Following is the code i am executing   ... to update the simple object by using Update query by i am getting following exception [ObjectDB 2.4.4_15] ...

 
forum_thread

ArrayIndexOutOfBoundsException

Hi, I've been getting the following exception when trying to query ObjectDB in server mode version 2.3.4_05. ... Hi, I've been getting the following exception when trying to query ObjectDB in server mode ... to delete the DB and create it from scratch and am now getting a similar error: [ObjectDB 2.3.4_05] Unexpected exception ...

 
forum_thread

ObectDb 2.3.6 in OSGi environment

Hello, I'm trying to use ObjectDb within OSGi bundles. I have one bundle for db accens which uses ObjectDb and another bundle which includes the POJO models. Everytime I start in plugin evironement i get an PersistenceException, because my POJO not found. If try the same test in normal Java environment everthing works fine. Can you please advice? Thx Peter #1 2012-06-29 02:17 Hello, I'm trying to use ObjectDb within OSGi bundles. I have one bundle for db accens which uses Obj ...

 
forum_thread

Insert time increases as db grows.

Hello, ... seconds against 30 seconds with hibernate+mysql. Then I started the test again and got 9,5 seconds; then 11 seconds and so on. Should I ... also tried to use enhancer manually on classes, but still getting the same results: insertion time grows as db grows. ...

 
forum_thread

Listing large number of complicated objects with paging.

Hi, For last few hours I was working on a problem with bad performance and memory problems with such a simple query: select prod from Product prod order by prod.id ASC Right now I have 55541 'Product' (attached to this post) entities in database and I'm trying to speed listing them with paging. The problem is, that running code that looks like this: #1 2011-11-15 18:32 Hi, For last few hours I was working on a problem with bad performance and memory problems with such a si ...

 
forum_thread

Jboss 6 persistence.xml startup error

Hi,   I'm trying to migrate a small EJB 3.1 project from Postgres to ObjectDb to test out feasibility, but I keep getting stuck on setting up the persistence.xml on JBoss 6 AS.   Here is my setup: ------- Start persistence.xml ------- ... Postgres to ObjectDb to test out feasibility, but I keep getting stuck on setting up the persistence.xml on JBoss 6 AS. Here is ...

 
forum_thread

Different behavior with persist() and queried instances?

Hi, We have a simple class that by itself contains (among others) a property pointing to a collection: class Bla {  @OneToMany(cascade = CascadeType.ALL) private List<AttributeEntity> metaAttributes = new ArrayList<AttributeEntity>(); } ... 12:30 I am getting closer.. looks like persist works though in a sample project, *after* ... which of course doesn't mark the object dirty when getting changed so a following merge call doesn't bring any success either. ...

 
forum_thread

query on calendar class

Hello!   I'm looking for help to build query on calendar class. I need to get objects where Calendar.DAY_OF_WEEK is FRIDAY or any other. My class: @Entity public class Cdr {     private static final long serialVersionUID = 1L;        @Id @GeneratedValue     private long serialID;     private String A;     @Temporal(TemporalType.TIMESTAMP) private Calendar start; I tested: #1 2014-07-27 21:24 Hello!   I'm looking for help to build query on calendar class. I need to get objects wh ...

 
forum_thread

Updating existing persistence entries

I have stored some instances of MyObject via em.persist(myObjectInstance); I can fetch them and bind them to a kind of property editor in my app (it simply calls the setters to reflect gui editing actions). When I try to persist a object later on, I get an error like com.objectdb.o.UserException: Attempt to reuse an existing primary key value which makes sense to me but I'm missing a em.update() method. ... The transparent update needs a transaction to be started and then committed after the setter of an persisted object is called, ...