Code Monkey home page Code Monkey logo

generic-dao's Introduction

##Sample Java EE 7 Project with a generic DAO implementation

Read the blog post:

This is just some code you can play with. I've tested this against JBoss WildFly 8.1, but it should run in any Java EE 7 compliant server with minor maven libs adjusments.

The application comes with its own embedded H2 database, which is started up and shutdown automatically. Each time you run the app, the database is initialized from scratch.

To get this running you need:

  • JDK 8
  • JBoss WildFly 8.1.0
  • An IDE of your choice (or none)
  • If you intend to use a server different than JBoss 8.1 (WildFly), please remember you probably you'll need to register the H2 Database JDBC Driver.
  • Remember to use UTF-8 encoding!
  • Deploy the app, run http://localhost:8080/generic-dao and you should get the main page that contains a simple button to trigger the tests. Browse the code to get a feeling for what it does.

Please note that running JDK 8 and JBoss WildFly in Eclipse might need some tweaks.

generic-dao's People

Contributors

rodrigouchoa avatar

Watchers

Reynaldo Pérez Sánchez avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.