About update

forum_thread

@PrePersist Implementation

Hi Please help me.I have requirement like In my project having arround 100 pojos .I have used @EntityListener and @prePersist annotaions to invoke my action class .. But problem is how can i get oldvalue and new value of current form of pojo in side my @entity Listener Action class. code snipt ===== Action class ======= ... entity object is updated, to get the entity before the update use the @PreUpdate event, and to get the entity after the update use  @PostUpdate. In order to be able to get told value ...

 
forum_thread

Recommendation - concurrent access multiple class v

Hi! I've just started to architect a new system, stateless JSON API, which is expected to have very high load and to require more servers for parallel deployments (same app across multiple servers). I am considering using ObjectDB, because of its advantages and easy usage, but I'm afraid that it might get corrupted because the manual says that we must not access ObjectDB with different versions of a class. Let's take the following scenario: ... are also updated.  --- I can't update all 5 of them in the same time, because it must be no downtime for the ... To post a reply and/or subscribe to update notifications - please login . ...

 
manual

Working with JPA Entity Objects

Explains the entity object lifecycle and the persistence context.... change is detected by the owning EntityManager and the update is propagated to the database on transaction commit.  See the ...

 
forum_thread

Need help to analyse very high memory usage by objectdb (PRU, SEV, VAL[])

Hello, we have a useCase in which we consume too much memory and run into a "GC overhead limit exceeded" exception. Nearly 90% of the memory are taken by com.objectdb.o.PRU (49%) com.objectdb.o.SEV (29%) and com.objectdb.oVAL [] (9%). When debugging, we did not get the reason for the high memory consumption yet. Can you give us any any hints, which leads to the generation of these objects? We assume that we (erroneously) refer to too many entities in the memory. ... This may be caused by large insert / update transactions, with large amount of data pending to be written to the ... Objects nevertheless be explained with generation or update of entities?   We had not created many entries and ...

 
forum_thread

use of Singleton into tomcat

hi all. i would write a class singleton that encapsulate the entitymanagerFACTORY    into it.(the entitymanagerFactory  IS A property of the only instance of class singleton. (the class singleton is not a Ejb!!!!!!!!!). into tomcat it not possible  use ejbs............. i have to manage the concurrency for the operations on db............... with a method static i can get the only instance of singleton for manage all operation on database. I get a instance of it into multiple servlet. ... updateUser(User userToUpdater){ //code for update into db }   but i ask if the metods for update, write . read , create Users it to be syncornized into signature or with ...

 
forum_thread

In memory processing for ObjectDB

Hi there ! We are building a platform for trades processing where we want to keep our processing speeds very high. We like ObjectDb because its simplicity and the performance benchmarks, but to take it to next level really we wanted to check whether is there any In memory mode available for ObjectDB where recovery is possible, something like prevalyer etc. ... performance is greatest. Thanks.   Update: Support of Memory Mode was added to ObjectDB in version 2.6.4. ... To post a reply and/or subscribe to update notifications - please login . ...

 
forum_thread

OneToMany and cascade delete problem

Hi, I don't really know if this is a bug or maybe model that I make is bad. I have a problem with with two different classes with OneToMany relation to one, shared class. For example (first class): @Entity public static class Store { @OneToMany(targetEntity = Offer.class, mappedBy = "store") private List<Offer> offers; } second class: ... To post a reply and/or subscribe to update notifications - please login . ...

 
forum_thread

OneToMany Bidirectional Relationship Problem

Hi, I'm pretty certain I'm doing something stupid. I've read everything I can find on OneToMany in the forum and in the JPA docs, but I can't get it to work with 2.4.0_04. I've attached a testcase. I want the owning object present in the child, (in the example, Team to be in Player). Thanks Paul. ... The application has to update both sides of a bidirectional relationship. Your test passes ... To post a reply and/or subscribe to update notifications - please login . ...

 
release

2.3.6

... ). Completed missing documentation (e.g. UPDATE & DELETE queries). Fixed memory leak issues. ... and Explorer About dialog boxes. Fixed an UPDATE/DELETE query bug in client-server mode. Fixed an ...

 
forum_thread

Failed to read the value of field using reflection (error 363)

I have encountered this error from one of the many servers hosting my application. Other servers didn't encounter errors of this kind and running without problems. My system provider said that nearly all of the servers are VM-based including this one which encountered this error. It is the 'youngest' server in deployment. I can get more information as you require. As the application developer, I am perplexed as I have use JPA and ObjectDB for years now. I could use your assistance in overcoming this problem. Thank you. ----- ... 10:42 I wish to update that the issue has been resolved.   We have ... We also reverted the ObjectDB JAR to [2.3.7_08] after the update. If you need more information, I'll do my best to provide ...