|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object se.citerus.dddsample.infrastructure.persistence.hibernate.HibernateRepository se.citerus.dddsample.infrastructure.persistence.hibernate.CargoRepositoryHibernate
@Repository public class CargoRepositoryHibernate
Hibernate implementation of CargoRepository.
Constructor Summary | |
---|---|
CargoRepositoryHibernate()
|
Method Summary | |
---|---|
Cargo |
find(TrackingId tid)
Finds a cargo using given id. |
java.util.List<Cargo> |
findAll()
Finds all cargo. |
TrackingId |
nextTrackingId()
|
void |
store(Cargo cargo)
Saves given cargo. |
Methods inherited from class se.citerus.dddsample.infrastructure.persistence.hibernate.HibernateRepository |
---|
getSession, setSessionFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CargoRepositoryHibernate()
Method Detail |
---|
public Cargo find(TrackingId tid)
CargoRepository
find
in interface CargoRepository
tid
- Id
null
public void store(Cargo cargo)
CargoRepository
store
in interface CargoRepository
cargo
- cargo to savepublic TrackingId nextTrackingId()
nextTrackingId
in interface CargoRepository
public java.util.List<Cargo> findAll()
CargoRepository
findAll
in interface CargoRepository
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |