Giter Club home page Giter Club logo

openjpa's Introduction

openjpa

JPA TESTS/BUGS AND OTHERS

FOR RUN THIS PROJECT, JUST DO THIS STEPS IN pom.xml project

  1. Create the database/users table/inserts using the ddl-dml-db file for this. (MYSQL DATABASE)
  2. mvn -DskipTests=true clean install (this will compile,enhance and generate metamodel)
  3. mvn tomee:run (the server will start and you can see INFO - Server startup in XXXX ms)
  4. Acess the page using the browser and type http://localhost:8080/jpatest-1.0-SNAPSHOT/index.xhtml
  5. You will see 3 buttons, the first 2 buttons will fail, the third button will work as expected.

Running the plugin will setup easily an Apache TomEE server with all the necessary for run this "demo" (it will drop the mysql jar to lib folder too)

**********The database parameter for connection are under jpatest/src/main/tomee/conf/tomee.xml you will see this at the bottom. You can change the username/password

JdbcDriver com.mysql.jdbc.Driver JdbcUrl jdbc:mysql://localhost:3306/jpa_test?zeroDateTimeBehavior=convertToNull&rewriteBatchedStatements=true UserName developer Password developer JtaManaged true

The expected result is the first record of the table will update the description from "USER ONE" to "NEW NICKNAME USING FIND", this only happend when you click in the THIRD BUTTON. Im not sure why the first 2 actions buttons failed, the only difference between the first 2 method's its that they use criterias and jpql for retrive the entity and the third method use the find entity manager method.

It is a maven project using apache tomee as "application server", it has a plugin for run the project easily.

Please let me know if you have some troubles for reproduce it as well if you could reproduce it.

openjpa's People

Contributors

maxtorzito avatar

Stargazers

 avatar

Watchers

James Cloos avatar  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.