ObjectDB Database Search
101-150 of 200 resultspersistence.xml classes not respected by ObjectDB Hi! I have the following persistence.xml. The problem is that ObjectDB loads all the classes in P1 (+ their embeddable classes ). P2 is created properly, but P1 gets all entity classes (from P2 also). How can this be avoided, so that both P1 and P2 get just the classes that were specified to each | |
Using the wrong class to access a database; // imports public class Main { public static void main(String[] args) { run(); } static void run() { System.out.println("Test 1"); System.out.println("Point. class : " + Point. class ); EntityManagerFactory emf ... entity } } em.getTransaction().commit(); } } the Point class : package com.objectdb.tutorial; import | |
Duplicate Entity class names causes Exception in Query I have two Entities which have the same class name but reside in different packages, only one of them is mentioned in the persistence.xml. I a NamedQuery I use the unqualified class name ... ) at com.objectdb.jpa.JpaQuery.getSingleResult(JpaQuery.java:657) ... 64 more Here is the class doing | |
Problem to use find method on an abstract Class: AbstractMethodError is thrown this method mentioning LogicalObject I get AbstractMethodError Please see services.Tester class ... ] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver ... (Unknown Source) [ classes :] at services.PaltzefomatServlet.doPost(PaltzefomatServlet.java:46) [ classes | |
query on calendar class Hello! I'm looking for help to build query on calendar class . I need to get objects where Calendar.DAY_OF_WEEK is FRIDAY or any other. My class : @Entity public class Cdr {   ... ("SELECT c FROM Cdr c where c.start.DAY_OF_WEEK = ?1",Cdr. class ); query.setParameter(1,Calendar.FRIDAY | |
Schema update: package, class and field Support Thanks. It works. btc_es BTC EmbeddedSystems It does work for entities classes but not for embeddable classes . Do you have a solution for embeddable classes ? btc_es BTC EmbeddedSystems There should not be a difference between entity and embeddable classes regarding schema changes. Maybe | |
Field not persisted in abstract class with two level of nesting Hi, I have a field (embedded TZ1) which is not persisted in class MHD1 (TZ1 extends AS ... public class MHD1 implements Serializable{ private TZ1 timezone;   ... ; } } TZ1 package BUG2; import javax.persistence.Embeddable; @Embeddable public class TZ1  | |
Dont want to use Proxy Class of persistable proxy classes may affect the app behaviour. I have been trying to understand root cause ... at defineClass call in d method ACL class which is triggerd by i method of STL class . I think the byte array for the extended ArrayList class could not be properly created. I have not tried newer versions | |
com.objectdb.o.TEX: Type ... is not found, for a class that's already been enhanced successfully. to implement Enhancement (because the log always says that the classes are not enhanced). The main class starts like this, and does not reference any persistent classes directly. static void main(String[] args) { Enhancer.enhance( "common.app.Model,common.model.*,mr.model.*", Model. class | |
Add class to objectdb ? Hello , i've made blank db project and opened with explorer.jar How can i add class file then push ... them. But why odb file is fully blank ? How can i add classes ? kadirbasol Kadir BASOL I've clicked ... Currently to add new classes in the explorer you will have to use a workaround: Run the Explorer | |
How to create dynamic Entity class. javassist API to create dynamic class . Here i have written some code which is create dynamic class as well as object. Class and object successfully created. And insert data also now problem ... because of a ClassLoader conflict, i.e. the same class is defined by both your class loader | |
Class loading problem with private packages in OSGi environment use the classloader of the bundle of the entity. And not his own. The change of the context class ... another bundle and can only access classes and interfaces in other bundles if they are exported. ObjectDB needs the ability to access these types directly and not just by loading the implementing classes | |
Items in list are doubled, when the entity class is not enhanced Dear all, I have a problem with adding items (entities) into other entity list. When the classes are not enhanced, added items are doubled. Here is an example: @Entity public class Customer ... itemList; ... getters and setters } @Entity public class Item implements Serializable { private | |
Field in Generic Class not persisted? Hi, I am trying to persist a class which is extended from an generic class - but fields declared inside the generic class are not persisted - is that expected? I assume it can be done b/c this field ... ; @Entity public class OBJ6 extends ABS { @Id @GeneratedValue long id;   | |
Exception after update of indices of Entity class Hello, I changed the index definition of an entity class from @Index()... to @Indices() and now I ... . Could you describe the index change itself? The stack trace may indicate an issue with an embedded class ... of an embedded class ? support Support Hello, here are my classes : @Indices ({ @Index | |
LifeCycle Event with Embeddable classes for embeddable classes , not just for entities? My case looks as follows: @Entity public class Foo { @Id ... ()); }} @Embeddable public class Bar { @Temporal(TemporalType.TIMESTAMP) private Timestamp modifyDate ... ; objectArts objectArts So far any idea? My previous solution is to make the Bar class an Entity class | |
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 webel Dr Darren Kelly This is correct | |
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 ... for all classes TypedQuery query = em.createQuery(tmpQuery, Athlete. class ); // I want to avoid this List results | |
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 ... with model.jar (my entity classes in it) in classpath but it doesn't work (new entities still dont show up in ... a workaround, you can follow these 2 steps: Run the Explorer with the new class in the classpath:   | |
Restrict by class in query byNameQuery = this.entityManager.createQuery("SELECT f FROM Entry f WHERE f.name=:name", Folder. class ... 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 Entry | |
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 | |
Determining if Persistable Classes Have Trial Limitation Hi, I want to make our build automatically fail if classes are limited by the trial ... this used to work was that the Enhancer would not Enhance or sign the specified persistable classes ... below which would seem to indicate success ( classes not affected by trial limitations): [ObjectDB 2.7 | |
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 ... particular JAR containing enhanced classes from the build above. 3) Run some tool against picked JAR ... , etc.) Thank you. Maruta M Sedlakova To check if class MyEntity is enhanced using the OEM Enhancer use | |
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? btc_es BTC EmbeddedSystems Enhancement adds code to persistent classes ... . line coverage) rather than on the class file and JVM instructions may not be affected by code | |
Problem using Maven Repository - Enitiy Class will be ignored 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. It will be ignored. If i download ... with JPA classes and interfaces, and since these classes (including javax.persistence.Entity | |
Extended HashMap as Embeddable class Hi, Should it be possible to create an Embeddable class that extends HashMap (or Set etc.)? I ... it with @Embeddable annotation - I get an error. @Embeddable public class A extends HashMap { (...) } kborkowski Karol Borkowski User defined persistable classes that extend Java collection classes are not supported. support Support | |
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 | |
Weird behaviour with enhanced classes and embedded entities class Main { @Entity static class MyEntity { @Id   ... static class MyEmbeddedEntity { String title;   ... ; } } @Embeddable static class MySecondEmbeddedEntity {   | |
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 | |
Getting a list of all the entity class names the manual. support Support Actually, there is a simpler way to get the class names (in one line of code ... (PersistenceManager. class )); This method remained from ObjectDB 1.x, but in JPA 2 applications the JPA Metamodel API ... it to get entity names or class names - which is not the same). support Support | |
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) . webel Dr Darren Kelly If the entity classes are already enhanced (build time enhancement) then the enhancer agent is not expected to make any further changes to classes . support Support | |
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 ... makeTransient only on instances of persistence capable classes (in JDO, or entity classes in JPA). Embedded | |
Support of modifying an ObjectDB Entity class (Schema Change) If you modify an ObjectDB Entity class will it be supported by a database set up using the old class ? I already have an idea to iterate through a database, getting each record and then creating ... if ObjectDB can already handle changes to Entity classes . Please see my StackOverflow question | |
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 | |
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 ... Herve Ferreira All the non static non final non transient fields in a persistence capable class | |
How to move @Embedable collection to a dedicated entity class? we have a Parent and Child class with onetomany relation @Entity class Parent { @Id Long id; @OneToMany(orphanRemoval = true, cascade = CascadeType.ALL) List children; } @Embeddable class Child{ @Id | |
How do handle fields with java.net.URI class We are migrating an existing application to use ObjectDB as primary database. In this case it's necessary to be backward compatible and a change of class definitions isn't possible. So we have some ... for both. But neither I can create an @Index for this nor I can define the URI class as an @Entity | |
References to objects of missing obsolete entity classes the database but their classes have been deleted or missing? This is abnormal state for a database ... (enhanced) entity class in your project for that obsolete entity class . support Support ... itself, is it correct that the objects are in the database but their classes have been deleted or missing | |
Enhancing a class causes it to not save changes. So when we enhance the Account class , no changes are saved to it. When it is reflection mode, everything works perfectly. In reflection mode, the objectdb log on debug mode refers to classes ... out how ObjectDB is holding on to the old classes , as they have not existed for months.  | |
No Entity Class API classes (mainly entity classes in JPA or persistence capable classes in JDO). Usually, this is very convenient. Sometimes, however, it might be useful to access data without user defined persistable classes ... and should not be bound to specific entity classes and persistent fields. Therefore, an API for accessing | |
boolean field flips after schema update (in class) of another field We have added a boolean field to a class with default value false. After deployment on several instances the values of other boolean fields in the same class (next to the new one) flip or ... the field and is currently 2.8.3. itsme Martin Petzold This could be related to issue #2621 , if this class | |
Why does ObjectDB duplicate classes from javax.jdo:jdo-api? an index to a field that is an element collection and encountered an issue with duplicate classes ... a Maven plugin to detect duplicate classes and resources, it points out that both ObjectDB and the JDO API expose the same classes . I was wondering: is there was a reason why the ObjectDB JAR contains | |
Enum fields are set to null and embeddable enum class does not show in explorer! The enum type is also not listed in the explorer. I am talking about an enum class , which implements another interface. My List property is defined with the interface and not the specific class . Maybe ... enum type in embeddable classes ). It has also effect, if the related entity is saved | |
probable error in text of manual about embeddable classes at http://www.objectdb.com/java/jpa/entity/types website in "Embeddable Classes " section ... " which seems to be wrong. ko_23 Krzysztof The complete paragraph: "Instances of embeddable classes are always embedded in ... operations. Therefore, using embeddable classes can save space in the database and improve efficiency | |
Allow removal of entity class from ObjectDB & Explorer Hi. It would be very useful to be able to delete an entire entity class from ObjectDB ... to its data structure. When an entity class becomes unnecessary, we should be able to remove ... .8.2 adds support of deleting classes in the Explorer. An obsolete class can be selected in | |
Enhanced classes problem machine activation code, everything works fine. But when we enhanced our classes with OEM licence ... , which is supported only when classes are enhanced. As a workaround, please try to disable this lazy ... is unidirectional private CacheableJobAccountingInfo[] jais; The class itself contains just | |
Why is ObjectDb is holding onto classes that no longer exist? Why ObjectDb is holding onto classes that no longer exist? You can see the classes in ... :357) emilycrutcher Emily Crutcher The ObjectDB database keeps information on classes even after they are no longer in use. Currently the only way to such classes them from the database is to create | |
Error 990 when querying a class with persistence-capable-superclass) on the same class fail with the same error. The code was working with the class in this case until I ... . If you can make your application available to us (just jar/ class files, no java files are needed | |
Collision Between Different Schema Versions of Entity Classes Version 2.8.4 fixes a critical bug that in rare cases may cause collision between different schema versions of entity classes , when schemas have changes many times (usually more than 20 times). This bug mainly affects queries on hierarchy of multiple entity classes (i.e. a query on a super class | |
Explorer bug ? Objects seem to be missing from database in Class view, but are present as references []: involveValueOfEntityClassWithinListelInParsel: : valuePropertyName(floatQuantity) from entityClass( class com.greensoft.entity.test ... class (see 1st image attachment). But if your look, say, under field project in a Block object |