primaryKey
Creates a new
Entity.Key instance of the given entityType, initialised with the given value- Type Parameters:
T- the key value type- Parameters:
entityType- the entityTypevalue- the key value, assumes a single value key- Returns:
- a new
Entity.Keyinstance - Throws:
IllegalStateException- in case the given primary key is a composite keyIllegalArgumentException- in case the value is not of the correct typeNullPointerException- in case entityType is null