Full Hibernate and Hibernate JPA support for applications, with reflection basic support. – README.md

README.md

Level2 Persistence Framework

Small framework for managing persistence in java projects with Hibernate that uses genericDAO as it's base.

The goal is provide base classes for ease of use in complex environments. And automate DB management.

Examples

Let's do a small search with our generate DAO components:


        @Autowired
    protected DeviceDAO deviceDAO;
        ...

        Search search = new Search();
        search.addFilterEqual("client", client);
        search.addSortDesc("dateUpdated");
        search.setMaxResults(maxResults);
        List<MvcDevice> listResult = deviceDAO.search(search);
        return listResult;

Usage

Maven configuration

Fill this

Object generation using hibernate-tools

Fill this

Example of use

Fill this

Usage

Installation

Use our snapshot repos in maven under http://www.level2crm.com/nexus/

        <repository>
            <id>level2-nexus</id>
            <name>Level2 Public Maven Repository Group Releases</name>
            <layout>default</layout>
            <url>http://www.level2crm.com/nexus/content/repositories/releases</url>
            <releases>
                <enabled>true</enabled>
            </releases>
        </repository>
        <repository>
            <id>level2-nexus-snapshots</id>
            <name>Level2 Public Maven Repository Group Snapshots</name>
            <layout>default</layout>
            <url>http://www.level2crm.com/nexus/content/repositories/snapshots</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>

License (LGPL)

        Copyright 2012  Gonzalo Aguilar Delgado gaguilar at|@ level2crm.com

        This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as published by
    the Free Software Foundation, either version 3 of the License.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Lesser General Public License for more details.

    You should have received a copy of the Lesser GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.