001 /*
002 * openwms.org, the Open Warehouse Management System.
003 *
004 * This file is part of openwms.org.
005 *
006 * openwms.org is free software: you can redistribute it and/or modify
007 * it under the terms of the GNU Lesser General Public License as
008 * published by the Free Software Foundation, either version 3 of the
009 * License, or (at your option) any later version.
010 *
011 * openwms.org is distributed in the hope that it will be useful,
012 * but WITHOUT ANY WARRANTY; without even the implied warranty of
013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
014 * GNU Lesser General Public License for more details.
015 *
016 * You should have received a copy of the GNU Lesser General Public
017 * License along with this software. If not, write to the Free
018 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
019 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
020 */
021 package org.openwms.common.integration.jpa;
022
023 import org.openwms.common.domain.TransportUnitType;
024 import org.openwms.common.integration.TransportUnitTypeDao;
025 import org.openwms.core.integration.jpa.AbstractGenericJpaDao;
026 import org.springframework.stereotype.Repository;
027
028 /**
029 * A TransportUnitTypeDaoImpl.
030 *
031 * @author <a href="mailto:scherrer@openwms.org">Heiko Scherrer</a>
032 * @version $Revision: 1409 $
033 * @since 0.1
034 * @see org.openwms.core.integration.jpa.AbstractGenericJpaDao
035 * @see org.openwms.common.integration.TransportUnitTypeDao
036 */
037 @Repository("transportUnitTypeDao")
038 public class TransportUnitTypeDaoImpl extends AbstractGenericJpaDao<TransportUnitType, String> implements
039 TransportUnitTypeDao {
040
041 /**
042 * @return Name of the query
043 * @see org.openwms.core.integration.jpa.AbstractGenericJpaDao#getFindAllQuery()
044 */
045 @Override
046 protected String getFindAllQuery() {
047 return TransportUnitType.NQ_FIND_ALL;
048 }
049
050 /**
051 * @return Name of the query
052 * @see org.openwms.core.integration.jpa.AbstractGenericJpaDao#getFindByUniqueIdQuery()
053 */
054 @Override
055 protected String getFindByUniqueIdQuery() {
056 return TransportUnitType.NQ_FIND_BY_NAME;
057 }
058
059 }