se.citerus.dddsample.infrastructure.persistence.hibernate
Class VoyageRepositoryHibernate

java.lang.Object
  extended by se.citerus.dddsample.infrastructure.persistence.hibernate.HibernateRepository
      extended by se.citerus.dddsample.infrastructure.persistence.hibernate.VoyageRepositoryHibernate
All Implemented Interfaces:
VoyageRepository

@Repository
public final class VoyageRepositoryHibernate
extends HibernateRepository
implements VoyageRepository

Hibernate implementation of CarrierMovementRepository.


Constructor Summary
VoyageRepositoryHibernate()
           
 
Method Summary
 Voyage find(VoyageNumber voyageNumber)
          Finds a voyage using voyage number.
 
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

VoyageRepositoryHibernate

public VoyageRepositoryHibernate()
Method Detail

find

public Voyage find(VoyageNumber voyageNumber)
Description copied from interface: VoyageRepository
Finds a voyage using voyage number.

Specified by:
find in interface VoyageRepository
Parameters:
voyageNumber - voyage number
Returns:
The voyage, or null if not found.


Copyright © 2009. All Rights Reserved.