Skip to content

andreiribas/cdi-weld-jpa2-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cdi-weld-jpa2-example

Example application showing the integration between CDI Java Specification (using Weld provider) with JPA2 ORM (eclipselink). Both libraries are the default for Glassfish 3/4.x. It`s an application with only one entity class, and a Junit test class, receiving the objects via dependency injection with CDI annotations.

You can use it to study the integration, and to get an example of how it`s done, to create a more complex system.

To create the project,

just run the command below:

mvn eclipse:eclipse

It will create the eclipse project.

Then you can run the unit tests from Eclipse Junit framework.

To check that it`s working, just run mvn clean install, it will download the libs, compile the code, run the tests and build the app jar file.

About

Example application showing the integration between CDI Java Specification (using Weld provider) with JPA2 ORM (eclipselink). It`s an application with only one entity class, and a Junit test class, receiving the objects via dependency injection with CDI annotations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages