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

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

@Repository
public final class LocationRepositoryHibernate
extends HibernateRepository
implements LocationRepository


Constructor Summary
LocationRepositoryHibernate()
           
 
Method Summary
 Location find(UnLocode unLocode)
          Finds a location using given unlocode.
 java.util.List<Location> findAll()
          Finds all locations.
 
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

LocationRepositoryHibernate

public LocationRepositoryHibernate()
Method Detail

find

public Location find(UnLocode unLocode)
Description copied from interface: LocationRepository
Finds a location using given unlocode.

Specified by:
find in interface LocationRepository
Parameters:
unLocode - UNLocode.
Returns:
Location.

findAll

public java.util.List<Location> findAll()
Description copied from interface: LocationRepository
Finds all locations.

Specified by:
findAll in interface LocationRepository
Returns:
All locations.


Copyright © 2009. All Rights Reserved.