@PermitAll public class JpaModelInstanceMigrationDao extends com.whitestein.lsps.common.jpa.AbstractJpaBasicDao<ModelUpdate,Long> implements ModelInstanceMigrationDao
NAME
Constructor and Description |
---|
JpaModelInstanceMigrationDao()
Creates new instance.
|
JpaModelInstanceMigrationDao(javax.persistence.EntityManager em)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
List<ModelUpdate> |
findByMigrationId(long migrationId)
Returns a list of all model instance migrations ordered by the migration
date.
|
List<ModelUpdate> |
findByModelInstanceId(long modelInstanceId)
Returns a list of all model instance migrations ordered by the migration
date.
|
ModelUpdate |
findCurrentByModelInstanceId(long modelInstanceId)
Returns the current migration for the specified model instance id.
|
protected javax.persistence.EntityManager |
getEntityManager() |
clear, contains, findById, findById, findByIds, flush, getColName, getEntityClass, getEntityName, getReferenceById, merge, persist, refresh, refresh, remove, setEntityClass, setLockMode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public JpaModelInstanceMigrationDao()
public JpaModelInstanceMigrationDao(javax.persistence.EntityManager em)
em
- protected javax.persistence.EntityManager getEntityManager()
getEntityManager
in class com.whitestein.lsps.common.jpa.AbstractJpaBasicDao<ModelUpdate,Long>
public List<ModelUpdate> findByModelInstanceId(long modelInstanceId)
ModelInstanceMigrationDao
findByModelInstanceId
in interface ModelInstanceMigrationDao
public List<ModelUpdate> findByMigrationId(long migrationId)
ModelInstanceMigrationDao
findByMigrationId
in interface ModelInstanceMigrationDao
public ModelUpdate findCurrentByModelInstanceId(long modelInstanceId)
ModelInstanceMigrationDao
findCurrentByModelInstanceId
in interface ModelInstanceMigrationDao
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.