ObjectDB ObjectDB

Internal Website Search

71-80 of 168 resultsRefresh

GWT RPC is throwing serialization exception when I have object db date value

also on detachment (rebuild and enhance your classes again to use this). So you can use now detached entity objects. Maybe you may even use detached entity objects directly in GWT with no DTO. support Support Hello ... of the SerializationPolicy... Simson Simon Have you tried detaching entities before serializing them using GWT? objectdb

A lot of ENT and SIV instances which are not cleared by GC

classes? Are you using "objectdb.temp.no-detach"? Try to find the roots and paths to the ENT objects (using VisualVM) that keep them strongly reachable. support Support Yes, I use no-detach option. So how can I fix it? Remove no-detach? But it has negative effects too. Vladiator Vlad Myachikov

getReference(entityClass, primaryKey)

.) The application should not expect that the instance state will be available upon detachment


Method javax.persistence.EntityManager void remove( Object entity ) Remove the entity instance. Parameters: entity - entity instance Throws: IllegalArgumentException - if the instance is not an entity or is a detached entity TransactionRequiredException - if invoked on a container-managed entity


Method javax.persistence.EntityManager void clear() Clear the persistence context, causing all managed entities to become detached. Changes made to entities that have not been flushed to the database will not be persisted. Since: JPA 1.0

lock(entity, lockMode, properties)

properties and hints Throws: IllegalArgumentException - if the instance is not an entity or is a detached


Method javax.jdo.FetchPlan FetchPlan setDetachmentRoots( Collection roots ) Set the roots for DetachAllOnCommit. Parameters: roots - Collection of the detachment roots. Since: JDO 2.0


Method javax.jdo.listener.AttachCallback void jdoPreAttach() This method is called during the execution of javax.jdo.PersistenceManager.makePersistent on the detached instance before the copy is made. Since: JDO 2.0


Method javax.jdo.FetchPlan Class[] getDetachmentRootClasses() Get the root classes for DetachAllOnCommit. Returns: The detachment root classes Since: JDO 2.0


Method javax.jdo.FetchPlan int getDetachmentOptions() Get options used during detachment. Since: JDO 2.0

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