About attribute

forum_thread

Schema evolution & renamed/moved enum

Hello, I have an entity with an attribute of type enum say com.pkg1.MyEnum. I created a few instances of the class with this attribute of type com.pkg1.MyEnum. Now, I moved that enum to a different package and renamed it say com.pkg2.MyNewEnum. When I open my database again, the attribute is null. I don't seem to be able to use the <schema> tag in the config file because my enum is not an entity. What is a the proper way of handling the migration? Thanks, Farid  ... Hello, I have an entity with an attribute of type enum say com.pkg1.MyEnum. I created a few instances of the class with this attribute of type com.pkg1.MyEnum and stored them in the database. Now, ...

 
api-jpa

join(attributeName)

Create an inner join to the specified attribute.(Method of javax.persistence.criteria.From)

 
api-jpa

getSet(name, elementType)

Return the Set-valued attribute of the managed type that corresponds to the specified name and Java element type.(Method of javax.persistence.metamodel.ManagedType)

 
api-jpa

getCollection(name, elementType)

Return the Collection-valued attribute of the managed type that corresponds to the specified name and Java element type.(Method of javax.persistence.metamodel.ManagedType)

 
api-jpa

getDeclaredSet(name, elementType)

Return the Set-valued attribute declared by the managed type that corresponds to the specified name and Java element type.(Method of javax.persistence.metamodel.ManagedType)

 
api-jpa

getDeclaredSingularAttribute(name)

Return the single-valued attribute declared by the managed type that corresponds to the specified name.(Method of javax.persistence.metamodel.ManagedType)

 
api-jpa

getDeclaredList(name, elementType)

Return the List-valued attribute declared by the managed type that corresponds to the specified name and Java element type.(Method of javax.persistence.metamodel.ManagedType)

 
api-jpa

isLoaded(entity, attributeName)

Determine the load state of a given persistent attribute of an entity belonging to the persistence unit.(Method of javax.persistence.PersistenceUnitUtil)

 
api-jpa

getDeclaredCollection(name, elementType)

Return the Collection-valued attribute declared by the managed type that corresponds to the specified name and Java element type.(Method of javax.persistence.metamodel.ManagedType)