KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > blandware > atleap > persistence > hibernate > core > LocalizableDAOHibernate


1 /*
2  * Copyright 2004 Blandware (http://www.blandware.com)
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package com.blandware.atleap.persistence.hibernate.core;
17
18 import com.blandware.atleap.model.core.Localizable;
19 import com.blandware.atleap.persistence.core.LocalizableDAO;
20
21 /**
22  * <p>Hibernate implementation of LocalizableDAO
23  * </p>
24  * <p><a HREF="LocalizableDAOHibernate.java.htm"><i>View Source</i></a></p>
25  *
26  * @author Sergey Zubtcovskii <a HREF="mailto:sergey.zubtcovskii@blandware.com">&lt;sergey.zubtcovskii@blandware.com&gt;</a>
27  * @version $Revision: 1.3 $ $Date: 2005/02/24 19:50:29 $
28  */

29 public class LocalizableDAOHibernate extends BaseDAOHibernate implements LocalizableDAO {
30
31     /**
32      * Creates new instance of LocalizableDAOHibernate
33      */

34     public LocalizableDAOHibernate() {
35     }
36
37     /**
38      * @see com.blandware.atleap.persistence.core.LocalizableDAO#retrieveLocalizable(java.lang.Long)
39      */

40     public Localizable retrieveLocalizable(Long JavaDoc localizableId) {
41         return (Localizable) getHibernateTemplate().get(Localizable.class, localizableId);
42     }
43 }
44
Popular Tags