public class HibUtilsMapping
extends Object
metadata and other methods for hibernate
-
Constructor Summary
Constructors
-
Method Summary
static boolean
see if this object would be an insert for hibernate, or if it would be an update.
get the hibernate primary key property value (current value)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
HibUtilsMapping
public HibUtilsMapping()
-
Method Details
-
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
get the hibernate primary key property value (current value)
- Parameters:
object
-
- Returns:
- the value