org.squashtest.tm.service.internal.repository.hibernate
@Repository public class HibernateTestAutomationProjectDao extends Object implements TestAutomationProjectDao
| Constructor and Description |
|---|
HibernateTestAutomationProjectDao() |
| Modifier and Type | Method and Description |
|---|---|
org.squashtest.tm.domain.testautomation.TestAutomationProject |
findByExample(org.squashtest.tm.domain.testautomation.TestAutomationProject example)
Given a detached (or even attached)
TestAutomationProject example, will fetch a TestAutomationProject
having the same characteristics. |
org.squashtest.tm.domain.testautomation.TestAutomationProject |
findById(Long id) |
void |
persist(org.squashtest.tm.domain.testautomation.TestAutomationProject newProject)
Will persist a new
TestAutomationProject. |
org.squashtest.tm.domain.testautomation.TestAutomationProject |
uniquePersist(org.squashtest.tm.domain.testautomation.TestAutomationProject newProject)
Will persist a TestAutomationProject if really new, or return the existing instance
if not.
|
public void persist(org.squashtest.tm.domain.testautomation.TestAutomationProject newProject)
TestAutomationProjectDaoTestAutomationProject. Note : each server must have different characteristics, more exactly each combination of
attributes is unique. Therefore if the object to be persisted already exists in the database an exception will be raised instead.persist in interface TestAutomationProjectDaopublic org.squashtest.tm.domain.testautomation.TestAutomationProject uniquePersist(org.squashtest.tm.domain.testautomation.TestAutomationProject newProject)
TestAutomationProjectDaouniquePersist in interface TestAutomationProjectDaopublic org.squashtest.tm.domain.testautomation.TestAutomationProject findById(Long id)
findById in interface TestAutomationProjectDaopublic org.squashtest.tm.domain.testautomation.TestAutomationProject findByExample(org.squashtest.tm.domain.testautomation.TestAutomationProject example)
TestAutomationProjectDaoGiven a detached (or even attached) TestAutomationProject example, will fetch a TestAutomationProject
having the same characteristics. Null attributes will be discarded before the comparison.
findByExample in interface TestAutomationProjectDaoCopyright © 2010-2014 Henix, henix.fr. All Rights Reserved.