Java Persistence API

learn more… | top users | synonyms

-1
votes
0answers
7 views

JPQL: Construct objects from query with too many fields [closed]

While the topic is bordering on subjective, take a look at the scenario and tell me if this 'smells'. We have a table called Office with about 20 odd columns and we need to pull out reporting ...
1
vote
1answer
54 views

Simple guestbook made using Java EE 7 technologies (JSF, CDI, EJB, JPA)

I'm making my first steps in Java EE. This is a simple guestbook made using Java EE 7 technologies (JSF, CDI, EJB, JPA). I will really appreciate your feedback. Does the code follows the standard ...
0
votes
1answer
26 views

Facade pattern usage with JDBC-resource on Glassfish

For this project: ...
4
votes
2answers
61 views

Making a database entity superclass

I am using JPA for my database work and I need to create a database entity superclass which all of my table entities will extend. Every database entity will have a primary key named ...
0
votes
1answer
50 views

First facelets with JPA app on glassfish

So far as I've tested it, these few facelets files with JPA database connections work as intended. The queue, MyQueue, is at ...
1
vote
1answer
177 views

JavaSE client: is this how to get a new JPA EntityManager each time? (DAO)

This class functions, in that the program can be left open for hours and it will still reconnect to the database when the user prompts for a CRUD operation. I've read about DAO, and some other ...
3
votes
1answer
86 views

Inserting data in 3 tables of a database with JPA

I am starting a personal project and my first step is to insert a lot of statuses from tweeter in a database along with it's user and place (if applicable). This is the database structure: Pretty ...
6
votes
1answer
61 views

Intern AuditSystem in DB and getting users from it

My project has a change on the database, so that every INSERT-UPDATE-DELETE action is logged with triggers on the DB. For that they have an extra table created: Table ...
3
votes
3answers
5k views

Efficient way of handling multiple sorting and filtering using JPA

I'm using JPA 2.0, Mojarra 2.1.9 and its component library Primefaces 3.5. I have a table in MySQL database named state_table with three columns. state_id ...
1
vote
2answers
125 views

Repetitive code for different Database Entities with same implementation

I have this code in LogInService ...
2
votes
1answer
881 views

JPA connection : is this code is efficient enough

By reading some tutorial i have written some peace of code to do crud operation . I just want to know how is this code is efficient or how can i make better ? Here i am giving code of 3 class 1. ...
5
votes
2answers
735 views

Checking if entity exist in Google App Engine Datastore using JPA 1

Below is my method in checking if entity already exist. ...