About class

111-120 of 200Refresh
Forum
14

Class fields selection to store

In a class how do I define which are the fields to be stored? (using JDO API) It's using persistence-modifier="persistent" ? If I have a class with 40 fields and I only want to store one of the fields should I do the following? <class name="Car">
Forum
14

LifeCycle Event with Embeddable classes

for embeddable classes, not just for entities? My case looks as follows: @Entity public class Foo { @Id ... Timestamp(System.currentTimeMillis()); }} @Embeddable public class Bar { @Temporal(TemporalType ... class an Entity class though it does not make sense practically. I cannot setModifyDate manually
Forum
14

Restrict by class in query

=:name", Folder.class); return byNameQuery.setParameter("name", folderName).getResultList(); } I would have assumed that the class parameter would cause results to be restricted to only objects of type Folder (I have a class hierarchy in which both Link and Folder are subclasses of a common root
Forum
14

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
14

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
14

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
14

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
14

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
14

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
14

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