Home » Search

About class

101-110 of 200Refresh
Forum
11

Add class to objectdb ?

Hello , i've made blank db project and opened with explorer.jar How can i add class file then push ... blank ? How can i add classes?   I've clicked on create & persist button. Here is the problem i got ... .java:97) Currently to add new classes in the explorer you will have to use a workaround: Run
Forum
11

Class loading problem with private packages in OSGi environment

the classloader of the bundle of the entity. And not his own. The change of the context class loader ... of the entity. And not his own. ObjectDB is in another bundle and can only access classes and interfaces ... and not just by loading the implementing classes (for the persistent interfaces feature). > Creating
Forum
11

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 ... and setters } @Entity public class Item implements Serializable { private static
Forum
11

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 ... .SerializationUtils; @Entity public class OBJ6 extends ABS{      @Id @GeneratedValue long id
Forum
11

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 ... itself? The stack trace may indicate an issue with an embedded class with no indexes or fields (which maybe had indexes before). Have you changed the indexes of an embedded class? Hello, here are my classes
Forum
11

How prevent post-compile enhancement of non entity classes

.platform.classpath}">
Forum
11

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
11

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
11

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
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