Java Persistence API

learn more… | top users | synonyms

3
votes
1answer
49 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 ...
3
votes
0answers
24 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
3k 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
122 views

Repetitive code for different Database Entities with same implementation

I have this code in LogInService ...
2
votes
1answer
650 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
618 views

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

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