| install mvn exec:java -Dexec.mainClass="test. metamodel .App" or fire it up in your favorite Maven capable ... .java:84) at test. metamodel .App.main(App.java:15) ... 6 more Caused by: com.objectdb.o.UserException ... the Retrieving Metamodel without Connection feature (which was implemented following your request two years ago |
| made to load class or resource [ metamodel /PrimitiveValue.jdo] on an ASURLClassLoader instance ... : file:/usr/local/glassfish/glassfish/domains/dex/applications/ metamodel -ear-1.0-SNAPSHOT/lib/commons ... / metamodel -ear-1.0-SNAPSHOT/lib/commons-logging-1.2.jar, URLEntry : file:/usr/local/glassfish/glassfish |
| , the Metamodel is empty - none of the entities referenced in the mapping file are present in the Metamodel ... -classes to false. The Metamodel API still returns the empty set when 'getEntities()' is invoked ... the Metamodel API (storing objects, etc)? Does it work? support Support So I changed the persistence |
| code fails EntityType type = metamodel .entity(domainClass);   ... ; "The given domain class can not be found in the given Metamodel !");   ... Metamodel API is fully supported by ObjectDB, but it seems that the getTypeId method was implemented |
| I tried adding an explicit inspection of the EntityType using the metamodel public IMapItem getMapItem(Integer cachedKey, EntityManager em) { Metamodel metamodel = em.getMetamodel(); EntityType type2 = metamodel .entity(NoIdQueryMapItem.class); if(type2 == null) { System.err.println("CRASH |
| etc) This is the code I use to retrieve all Managed Types and data for the Athlete class Metamodel metamodel = em.getMetamodel(); Set allManagedTypes = metamodel .getManagedTypes(); for(ManagedType o ... parse the data? ezazop Akis Zazopoulos Using Java Reflection API. The JPA Metamodel API may also help. support Support |
| _01") @javax.persistence.NamedQueries({ /* queries */ }) public class ObjectValue implements metamodel ... ; queries */}) public class Attribute implements metamodel .IAttribute { @javax.persistence.Id   ... (name="value") private metamodel .Value value; public Attribute() {   |
| I was wondering if there is any way to get a list of the entity names in the database? dmoshal David Moshal You can use the Metamodel API as explained by the JPA Metamodel API page in ... (PersistenceManager.class)); This method remained from ObjectDB 1.x, but in JPA 2 applications the JPA Metamodel API |
| A. This thread update the Metamodel , and then close the entityManager. (UpdateMetamodel: call for each ... ; So it seems to be a link between the Metamodel and the IndexActivation. btc_es BTC EmbeddedSystems Thank ... -thread-3] is our thread to update the metamodel . - (We call for each EntityClass: entityManager |
| JPA Method in javax.persistence. metamodel .IdentifiableType Set getIdClassAttributes () Return the attributes corresponding to the id class of the identifiable type. Return: id attributes Throws: IllegalArgumentException - if the identifiable type does not have an id class Since: JPA 2.0 |
| JPA Method in javax.persistence. metamodel .IdentifiableType Type getIdType () Return the type that represents the type of the id. Return: type of id Since: JPA 2.0 |
| JPA Method in javax.persistence. metamodel .ManagedType Set getAttributes () Return the attributes of the managed type. Return: attributes of the managed type Since: JPA 2.0 |
| JPA Method in javax.persistence. metamodel .ManagedType Set getDeclaredAttributes () Return the attributes declared by the managed type. Returns empty set if the managed type has no declared attributes. Return: declared attributes of the managed type Since: JPA 2.0 |
| JPA Method in javax.persistence. metamodel .ManagedType SingularAttribute getSingularAttribute ( String name, Class type ) Return the single-valued attribute of the managed type that corresponds to the specified name and Java type. Parameters: name - the name |
| JPA Method in javax.persistence. metamodel .ManagedType SingularAttribute getDeclaredSingularAttribute ( String name, Class type ) Return the single-valued attribute declared by the managed type that corresponds to the specified name and Java type. Parameters |
| JPA Method in javax.persistence. metamodel .ManagedType Set getSingularAttributes () Return the single-valued attributes of the managed type. Returns empty set if the managed type has no single-valued attributes. Return: single-valued attributes Since: JPA 2.0 |
| JPA Method in javax.persistence. metamodel .ManagedType Set getDeclaredSingularAttributes () Return the single-valued attributes declared by the managed type. Returns empty set if the managed type has no declared single-valued attributes. Return: declared single-valued attributes Since: JPA 2.0 |
| JPA Method in javax.persistence. metamodel .ManagedType CollectionAttribute getCollection ( String name, Class elementType ) Return the Collection-valued attribute of the managed type that corresponds to the specified name and Java element type. Parameters |
| JPA Method in javax.persistence. metamodel .ManagedType CollectionAttribute getDeclaredCollection ( String name, Class elementType ) Return the Collection-valued attribute declared by the managed type that corresponds to the specified name and Java element |
| JPA Method in javax.persistence. metamodel .ManagedType SetAttribute getSet ( String name, Class elementType ) Return the Set-valued attribute of the managed type that corresponds to the specified name and Java element type. Parameters: name - the name |
| JPA Method in javax.persistence. metamodel .ManagedType SetAttribute getDeclaredSet ( String name, Class elementType ) Return the Set-valued attribute declared by the managed type that corresponds to the specified name and Java element type. Parameters: name |
| JPA Method in javax.persistence. metamodel .ManagedType ListAttribute getList ( String name, Class elementType ) Return the List-valued attribute of the managed type that corresponds to the specified name and Java element type. Parameters: name - the name |
| JPA Method in javax.persistence. metamodel .ManagedType ListAttribute getDeclaredList ( String name, Class elementType ) Return the List-valued attribute declared by the managed type that corresponds to the specified name and Java element type. Parameters |
| JPA Method in javax.persistence. metamodel .ManagedType MapAttribute getMap ( String name, Class keyType, Class valueType ) Return the Map-valued attribute of the managed type that corresponds to the specified name and Java key |
| JPA Method in javax.persistence. metamodel .ManagedType MapAttribute getDeclaredMap ( String name, Class keyType, Class valueType ) Return the Map-valued attribute declared by the managed type that corresponds to the specified name |
| JPA Method in javax.persistence. metamodel .ManagedType Set getPluralAttributes () Return all multi-valued attributes (Collection-, Set-, List-, and Map-valued attributes) of the managed type. Returns empty set if the managed type has no multi-valued attributes. Return: Collection-, Set-, List-, and Map-valued attributes Since: JPA 2.0 |
| JPA Method in javax.persistence. metamodel .ManagedType Set getDeclaredPluralAttributes () Return all multi-valued attributes (Collection-, Set-, List-, and Map-valued attributes) declared by the managed type. Returns empty set if the managed type has no declared multi-valued attributes. Return |
| JPA Method in javax.persistence. metamodel .ManagedType Attribute getAttribute ( String name ) Return the attribute of the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute Return: attribute with given name Throws |
| JPA Method in javax.persistence. metamodel .ManagedType Attribute getDeclaredAttribute ( String name ) Return the attribute declared by the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute Return: attribute with given name |
| JPA Method in javax.persistence. metamodel .ManagedType SingularAttribute getSingularAttribute ( String name ) Return the single-valued attribute of the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute Return: single |
| JPA Method in javax.persistence. metamodel .ManagedType SingularAttribute getDeclaredSingularAttribute ( String name ) Return the single-valued attribute declared by the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute |
| JPA Method in javax.persistence. metamodel .ManagedType CollectionAttribute getCollection ( String name ) Return the Collection-valued attribute of the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute Return |
| JPA Method in javax.persistence. metamodel .ManagedType CollectionAttribute getDeclaredCollection ( String name ) Return the Collection-valued attribute declared by the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute |
| JPA Method in javax.persistence. metamodel .ManagedType SetAttribute getSet ( String name ) Return the Set-valued attribute of the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute Return: SetAttribute of the given name |
| JPA Method in javax.persistence. metamodel .ManagedType SetAttribute getDeclaredSet ( String name ) Return the Set-valued attribute declared by the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute Return: declared |
| JPA Method in javax.persistence. metamodel .ManagedType ListAttribute getList ( String name ) Return the List-valued attribute of the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute Return: ListAttribute of the given name |
| JPA Method in javax.persistence. metamodel .ManagedType ListAttribute getDeclaredList ( String name ) Return the List-valued attribute declared by the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute Return: declared |
| JPA Method in javax.persistence. metamodel .ManagedType MapAttribute getMap ( String name ) Return the Map-valued attribute of the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute Return: MapAttribute of the given name |
| JPA Method in javax.persistence. metamodel .ManagedType MapAttribute getDeclaredMap ( String name ) Return the Map-valued attribute declared by the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute Return: declared |
| JPA Method in javax.persistence. metamodel .MapAttribute Class getKeyJavaType () Return the Java type of the map key. Return: Java key type Since: JPA 2.0 |
| JPA Method in javax.persistence. metamodel .MapAttribute Type getKeyType () Return the type representing the key type of the map. Return: type representing key type Since: JPA 2.0 |
| JPA Method in javax.persistence. metamodel .PluralAttribute PluralAttribute .CollectionType getCollectionType () Return the collection type. Return: collection type Since: JPA 2.0 |
| JPA Method in javax.persistence. metamodel .PluralAttribute Type getElementType () Return the type representing the element type of the collection. Return: element type Since: JPA 2.0 |
| JPA Method in javax.persistence. metamodel .SingularAttribute boolean isId () Is the attribute an id attribute. This method will return true if the attribute is an attribute that corresponds to a simple id, an embedded id, or an attribute of an id class. Return: boolean indicating whether the attribute is an id Since: JPA 2.0 |
| JPA Method in javax.persistence. metamodel .SingularAttribute boolean isVersion () Is the attribute a version attribute. Return: boolean indicating whether the attribute is a version attribute Since: JPA 2.0 |
| JPA Method in javax.persistence. metamodel .SingularAttribute boolean isOptional () Can the attribute be null. Return: boolean indicating whether the attribute can be null Since: JPA 2.0 |
| JPA Method in javax.persistence. metamodel .SingularAttribute Type getType () Return the type that represents the type of the attribute. Return: type of attribute Since: JPA 2.0 |
| JPA Method in javax.persistence. metamodel .Type Type .PersistenceType getPersistenceType () Return the persistence type. Return: persistence type Since: JPA 2.0 |
| JPA Method in javax.persistence. metamodel .Type Class getJavaType () Return the represented Java type. Return: Java type Since: JPA 2.0 |
| From my Entities a StaticMetamodel is generated through Hibernate JPA 2 Metamodel Generator ... and a failing test case BigMichi1 Michael Cramer Currently ObjectDB doesn't support the static metamodel ... ). Support of the static metamodel classes should be added to ObjectDB soon. support Support |