About entities

191-200 of 200Refresh
Forum
8

How to define Default Entity Listeners without persistence.xml and orm.xml

I am using JPA programaticaly..ie without xml file, and i would like to define Default Entity Listeners. How to do ? Here my init code: Properties config = new Properties(); config.put("javax.persistence.provider", "com.objectdb.jpa.Provider"); config.put("javax.persistence.jdbc.url", "objectdb
Forum
8

Internal objectdb error when open a database or open an entity manager

we get following exception when we open a database or open an entity manager   Exception in thread "ODB IndexActivation" [ObjectDB 2.6.6_06] Unexpected exception (Error 990) Generated by Java HotSpot(TM) 64-Bit Server VM 1.8.0_51 (on Windows 7 6.1). Please report this error on http://www
Forum
8

Is it possible get the All PrimKeys for a given entity class in the DB?

. Anyway, adding @Id field doesn't duplicate storage. The field is initialized each time the entity object
Forum
8

NPE after an @embedded obj is updated for a detached entity

I have an entity that looks like this: class User {     @embedded private Profile profile;     ... } After running something like this:     User user = entityManager.createQuery("select......     entityManager.detach(user);     user.getProfile().setDescription("Something... I
Issue
8

OutOfMemoryError, if close the entity manager

Hello, why this error occurs during close the entity manager?   Caused by: java.lang.OutOfMemoryError: Java heap space at com.objectdb.o.PageCacheFile.m(PageCacheFile.java:173) ~[na:na] at com.objectdb.o.PAG.N(PAG.java:498) ~[na:na] at com.objectdb.o.PAG.y(PAG.java:282) ~[na:na] at com
Forum
8

Problem of Enhancer with JAXB / Proxified Entity Bean.

Hello Support, I run on a prod server an objectdb java agent with my app. In this application, all my entities beans are constructed from a JAXBContext ( SOAP CXF Webservice or Direct JAXB Unmarshalling ) When i watch the objectdb log, i see pages of errors. Not Enhanced: com/test/MyBean
Issue
8

Collection update does not increase entity version and is not persisted

Hello, I found a bug when adding elements to a collection of Entities: Event { Collection attachments; void addAttachment(Attachment attachment) { this.attachments.add(attachment); } } Attachment { String filename } If I call this method
Forum
8

How to create dynamic Entity class.

();     Object entity = myCls.newInstance(); Now it is working.      Thank You. Bimal
JPA Doc
8

javax.persistence.PersistenceUnitUtil

of this interface should only be invoked on entity instances obtained from or managed by entity managers for this persistence unit or on new entity instances. Since: JPA 2.0 Object getIdentifier(Object entity) Return the id of the entity. Return the id of the entity. A generated id is not guaranteed
Forum
8

A few entities loss after update to 2.3.7_08!

A few entities loss after update to 2.3.7_08!