Home » Search

About class

121-130 of 200Refresh
Manual
11

Detached Entity Objects

): @Entity class Employee { : @OneToOne(cascade=CascadeType.DETACH) private Address address; : } In the example above, the Employee entity class contains an address field that references an instance of Address, which is another entity class. Due to the CascadeType.DETACH
Forum
11

10 classes limit

hey. i am a student. and we are learnning inheritance in JPA for my assiment i have 1 base class and 20 subclass in some kind of hierarchy (with all kind of mappings: SINGLE_TABLE, TABLE_PER_CLASS and JOINED). can i use the free version (it will count as 1 class?) or the 10 entity class limit won't
Issue
11

Enhanced classes problem

machine activation code, everything works fine. But when we enhanced our classes with OEM licence ... only when classes are enhanced. As a workaround, please try to disable this lazy loading by setting ... ")  // relation is unidirectional     private CacheableJobAccountingInfo[] jais; The class
Forum
11

Extended HashMap as Embeddable class

Hi, Should it be possible to create an Embeddable class that extends HashMap (or Set etc.)? I ... annotation - I get an error. @Embeddable public class A extends HashMap { (...) }     User defined persistable classes that extend Java collection classes are not supported. kborkowski
Forum
11

Delete class from DB - through Explorer

Hi! I was looking for ways to delete a class (entity/embedded) from a database through Explorer, but I couldn't find any. Is there any way for doing that? If not, why? The only way I see right now ... . However, it only affects the list of classes in the Explorer, so you may just ignore the deleted class
Forum
11

Does run time enhancer due to GlassFish/Payara do anything that would affect loaded compile-time entity classes ?

do anything that would affect loaded compile-time enhanced entity classes (other than just logging, typically just info and warn level).     If the entity classes are already enhanced (build time enhancement) then the enhancer agent is not expected to make any further changes to classes. webel
Forum
11

Enhancer failure: Failed to process class file of type

Stack trace below:   [ObjectDB 2.7.1_02] Failed to process class file of type 'app.model.ClientSession' (error 422) com.objectdb.o.UserException: Failed to process class file of type 'app.model ... )         ... 28 more Caused by: java.lang.IllegalAccessError: class jdk.internal.reflect.ConstructorAccessorImpl
Issue
11

Error 990 when querying a class with persistence-capable-superclass

(Long) query.execute(); All queries (eg ones with parameters) on the same class fail with the same error. The code was working with the class in this case until I added a persistence-capable-superclass ... . If you can make your application available to us (just jar/class files, no java files are needed
Forum
11

Getting a list of all the entity class names

, there is a simpler way to get the class names (in one line of code). It requires a JDO' s PersistenceManager ... .getClassNames(em.unwrap(PersistenceManager.class)); This method remained from ObjectDB 1.x, but in JPA 2 ... functionality (for example you can use it to get entity names or class names - which is not the same). dmoshal
Forum
11

makeTransient() not working on Embedded class

Hi, I am using JDO and calling PMimpl.makeTransient(object) on an object which has a class of type @EmbeddedOnly in ObjectDB version 2.5.5.b05. I get then the following error: com.objectdb.o ... only on instances of persistence capable classes (in JDO, or entity classes in JPA). Embedded objects are not