ObjectDB ObjectDB

Internal Website Search

1-10 of 18 resultsRefresh
189

Recursive calls with @PreUpdate annotation and Glassfish OutOfMemoryError

, which extends a BaseEntity. The BaseEntity has a @PreUpdate as per: @PreUpdate public void update ... property update (ore disable the @PreUpdate). Thanks Willks William I keep thinking ... on the @PreUpdate field due to state change detection 2) update() method modifies internal state
102

javax.persistence.PreUpdate

javax.persistence Annotation PreUpdate Target: Callback methods Is used to specify callback methods for the corresponding lifecycle event. This annotation may be applied to methods of an entity class, a mapped superclass, or a callback listener class. Since: JPA 1.0 Learn how to define and use JPA
44

JPA Lifecycle Events

() {} @PostLoad void onPostLoad() {} @PreUpdate void onPreUpdate() {} @PostUpdate void ... flush). @PostLoad - after an entity has been retrieved from the database. @PreUpdate ... o) {} @PostLoad void onPostLoad(Object o) {} @PreUpdate void onPreUpdate(Object o
34

preUpdate-methods are called when there is no change

().begin(); connection.getTransaction().commit(); // --> will result in a call of @PreUpdate
25

LifeCycle Event with Embeddable classes

Hello, is there a way that lifecycle events like prepersist or preupdate are also fired ... ) private Timestamp modifyDate; @PrePersist @PreUpdate void onPreUpdate() { modifyDate = new ... ; @PrePersist @PreUpdate void onPreUpdate() { modifyDate = new Timestamp
18

@PrePersist Implementation

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 in the @PreUpdate event
18

Adding EntityListener Throws Unexpected Internal Exception

o) {         Logger.info("PostLoad call.");     }     @PreUpdate     public void onPreRemove(Object o) {         Logger.info("PreUpdate call.");     } } And this throws an error every time I
18

Entity listener - event instead of object

for. @PreUpdate public void update(Object entity) { BaseEntity be = (BaseEntity) entity; em ... that has access to database before update is made. lwalkowski Lukasz Walkowski On @PreUpdate
12

How do handle fields with java.net.URI class

an @Entity. How can I deal with it? PS: The only solution I found is to use @PrePersits + @PreUpdate
12

Auto Date for Creation and Update

Hi, is there a way with objectdb to use annotations so that - automatically - the creation Date gets updated once only and the change Date on each change? It seems for hibernate there Are annotations for it for Dates and also prepersist and preupdate. How about with objectdb? Kind regards, Thomas

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support