Package com.atlassian.bamboo.persistence
Class BambooHibernate
- java.lang.Object
-
- com.atlassian.bamboo.persistence.BambooHibernate
-
public class BambooHibernate extends Object
Hibernate has Hibernate.entity() method used to provide entity types for registered persistentClasses. Immutable types are not reigstered with Hibernate, so they can't be used in Hibernate operations. In most of the cases, using Immutable types doesn't make sense anyway. One of the exceptions is usage of immutable types in queries. This class provides an entity() method that will work with HQL queries. To use it, instead of callingQuery.setParameter(String, Object)
, useQuery.setParameter(String, Object, org.hibernate.type.Type)
)}, and useentity(com.atlassian.bamboo.plan.cache.ImmutablePlan)
to provide type.
-
-
Method Detail
-
entity
public static org.hibernate.type.Type entity(ImmutablePlan plan)
-
-