About event

api-jpa

JPA 2 Annotations

Reference (JavaDoc) of all the JPA 2 annotations, including @Entity, @Embeddable, @NamedQuery, @GeneratedValue, etc.... Generation Annotations for JPA lifecycle event callbacks: JPA Annotations for Callback Methods ...

 
issue

Bean Validation (JPA 2.0)

JPA 2 adds support for integration with the Bean Validation API. Constraints are added to entity and embeddable classes by annotations, and can be checked automatically on PrePersist, PreUpdate and PreRemove lifecycle events. Integration with the Validation API is currently not supported by ObjectDB. JPA Feature Version: 1.04 Priority: Normal Status: Active Replies: 5 Type:  JPA Feature ...

 
issue

@PrePersist not working correctly

I have a method to calculate some values before persisting to the database. So i annotated it with @PrePersist. If i merge an object the annotated method get's called but all members are on their default values. I only tried it with new objects. So merge get's an object with id = null and therefore shoud behave like persist. (I always use merge) If i set a breakpoint before the em.merge(..) call the object is ok. Inside the @PrePersist method all fields are cleared.  ... order and now you should see your field values in the event callback method. Notice, however, that using merge as a ...

 
api-jpa

GenerationType.AUTO

Indicates that the persistence provider should pick an appropriate strategy for the particular database.(Enum Constant of javax.persistence.GenerationType)

 
issue

NullPointerException in ENH.g(ENH.java:401)

Hello, corresponding to your suggestion I created a private ticket in reply to http://www.objectdb.com/database/forum/1109. Attached you will find my database file (I removed most of the content but one corrupt instance is still included). ... included). I error happens when reading the field "Event.participants" of the entity with ... database file (before deleting all other entities of type "Event" I could not read the field "Event.participants" from any of them). Thanks in advance Markus ...

 
api-jdo

javax.jdo.listener.StoreCallback

This interface is used to notify instances of store events.(Interface of JDO)

 
forum_thread

Merge of entity classes with "mapped by" very slow

Hi, I have found a strange behavior when merging entities with "mapped by" set on @OneToMany relation. Even if object is fetched with find on the same transaction, merge is very slow. It's because on merge every single relation marked as LAZY is fetch from database. Attached two examples - one with mapped by, second with adding entities list without "mapped by". The difference is huge event for such small objects - 2ms (without mapped by) vs ~50ms (with mapped by) ... entities list without "mapped by". The difference is huge event for such small objects - 2ms (without mapped by) vs ~50ms (with mapped ...

 
forum_thread

ArrayIndexOutOfBoundsException at com.objectdb.o.ALS.c(ALS.java:89)

Hi all, I have created a packet grabber using JNetPcap. It creates a scala actor (java thread) for every packet grabbed which connect to an OpenDB database to add or update relevant entry's. Everything works fine until packets arrive with a time difference in the order of microseconds. Every scala actor opens a connection to the database, does what it needs to do, and then closes the connection. Something like: #1 2011-05-11 08:24 Hi all, I have created a packet grabber using JNetPcap. It creates a scala actor (java thread) for every ...

 
api-jdo

removeInstanceLifecycleListener(listener)

Removes the listener instance from the list of lifecycle event listeners.(Method of javax.jdo.PersistenceManager)

 
forum_thread

_UserException: Attempt to open a database file '...' that is currently in use

I have an application which runs correctly in NetbeansIDE but after building it, it won't just run sometime, the app stop responding to event at a particular point. I was able to reproduce this issue while running the jar file in command line and I got this exception which I have it stack attached here http://i.stack.imgur.com/IH8XZ.jpg ... it won't just run sometime, the app stop responding to event at a particular point. I was able to reproduce this issue while running ...