Home » Search

About class

111-120 of 200Refresh
Forum
11

Retrieve data of all entity classes in a single query

I have in an objectdb file 10 Entity Classes with some data in each (Athlete, Trainer, Stadium etc) This is the code I use to retrieve all Managed Types and data for the Athlete class Metamodel ... + " s"; // This works for all classes TypedQuery query = em.createQuery(tmpQuery
Forum
11

Running doctor.jar with entity classes in classhpath

Hi, I am wondering how to populate new entity classes to database file, so that I could add new ... .jar (my entity classes in it) in classpath but it doesn't work (new entities still dont show up in ... steps: Run the Explorer with the new class in the classpath:     java -cp -jar explorer
Forum
11

Weird behaviour with enhanced classes and embedded entities

.Persistence; public class Main {   @Entity   static class MyEntity {     @Id     int    id ... > getEmbeddedEntities(){       return embeddedEntities;     }   }     @Embeddable   static class ... ){       this.embeddedEntities.add(entity);     }   }     @Embeddable   static class
Forum
11

Does ObjectDB create one instance of each entity class on (web app) load ?

can also see that for Abstract bases of entities it is creating one instance with an instrumented class name. For example, if the abstract entity class is com.example.Common then there is exactly one instance in memory of class objectd.com.example.Common This is correct. ObjectDB keeps one delegate instance
Forum
11

How to check if the classes were enhanced correctly with valid OEM license?

Hello, is there a way/tool how to check whether build classes were enhanced with valid OEM license ... JAR containing enhanced classes from the build above. 3) Run some tool against picked JAR ... , etc.) Thank you. To check if class MyEntity is enhanced using the OEM Enhancer use the following boolean
Forum
11

Measurement of the test coverage of enhanced classes

to our customers. Therefore we think we need to test the enhanced classes. But that distorts our test ... "coverage" of our tests? Enhancement adds code to persistent classes so it would affect test coverage ... ) rather than on the class file and JVM instructions may not be affected by code that is added by enhancement
Issue
11

probable error in text of manual about embeddable classes

at http://www.objectdb.com/java/jpa/entity/types website in "Embeddable Classes" section ... . The complete paragraph: "Instances of embeddable classes are always embedded in other entity ... . Therefore, using embeddable classes can save space in the database and improve efficiency. Embeddable
Forum
11

Problem using Maven Repository - Enitiy Class will be ignored

I got follow Java Warning that tells me that Entity Class will be ignored. ../WEB-INF/lib/objectdb-2.6.2.jar' contains offending class: javax.persistence.Entity ... only the full ObjectDB jar with JPA classes and interfaces, and since these classes (including javax.persistence
Forum
11

Recommendation - concurrent access multiple class v

of a class. Let's take the following scenario: The same app is running on 5 machines. A change is required in one of the persistent classes, thus it's implemented. (Let's say a new field was added) 3 ... , where the previous version of a class is used by some servers, then others come with the new version
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