About Entity

161-170 of 200Refresh
Forum
13

Primary key generation problem after changing entity package

Hi, I changed package name for some of my entities in database. I added info in entity classes. After schema change I ... ();         em.close();         emf.close();     }     @Entity     public static class
Forum
13

Selective merge/cascade of detatched entity

example is: @Entity public class Salesman { private String name; @OneToMany(fetch ... ; } @Entity public class Company { private String name; } For the sake of the example, each ... of the database using its own isolated entity objects. To avoid multiple memory objects for the same
Forum
13

Problem on JPA Merge Entity.

of an entity (statement) with an other entity (newSingleConstraint). newSingleValue is already persisted. I ... and the newSingleValue is present. The entity manager don't link the newSingleValue to the statement when i ... a simple (more simple as possible, because i have a big hierarchy of class in entity domain) sample
Forum
13

Entity object parameter in Explorer parameter

Hello, I cannot set an entity object in a parameter for a bulk update in the explorer query execution. The format Entity#001 works well for the parameter in the WHERE clause, but it doesn't work in ... not support an entity parameter for an update? Any time that I need to do a bulk update, I need
Issue
13

Fetch a whole entity graph eager

next version ObjectDB 3.0? And do you know an easy possibility to get an entirely eager entity graph with all depended entities which we can use as a detached full accessible entity graph outside ... queries. JDO fetch groups. Hello, we have still always the problem to get a complex completed eager entity
Forum
13

Cascading (persist) with a mix of enhanced and not enhanced entities

We find out that it is actual not possible to use enhanced and not enhanced entities together. Exist any limitations regarding the use of enhanced and non-enhanced entities? We work based feature ... the entities during development is, because of our build environment, very time-consuming
Forum
13

Embedding Managed Entities in Embedded Objects = bad idea

Discovered that you can't embed entities in embeddable objects if the entity is managed. Haven't tried embedding un-managed entities in embeddable objects, though I imagine that's not a great idea. The the error message isn't all that obvious (attempting to persist object which already has an id
Forum
13

Entity factory

Hi, is it possible to create Entities with a custom factory? I want to create Entity instances via dependency injection like: @Entiy public class User { private final UserService userService ... in a ThreadLocal and access it inside the new Entity to inject the dependencies.
Forum
13

Entity factory - best practices

initiate a db connection by creating entity manager factory from db on disk, get the entity manager, modify ... one every time. Out of curiosity, is my current method thread-safe? Can multiple entity managers exist
Forum
13

Entity has be persistended,but query not fetched?

I create a new entity T newT and persistend it,then I create a query "select t from T t" to fetch all T entities.But  then the newT is not contain in the query result. Why? code order: query ... ();         em.close();         emf.close();     }         @Entity     static final class User