edu.internet2.middleware.grouper.hibernate
Class HibUtilsMapping
java.lang.Object
edu.internet2.middleware.grouper.hibernate.HibUtilsMapping
public class HibUtilsMapping
- extends Object
metadata and other methods for hibernate
HibUtilsMapping
public HibUtilsMapping()
isInsert
public static boolean isInsert(Object object)
- see if this object would be an insert for hibernate, or if it would be an update.
Note this only works if we dont have assigned keys...
- Parameters:
object
-
- Returns:
- true if insert
primaryKeyCurrentValue
public static Serializable primaryKeyCurrentValue(Object object)
- get the hibernate primary key property value (current value)
- Parameters:
object
-
- Returns:
- the value