2
votes
1answer
51 views

ORM Entity with many similar relationships

To provide some background context, I'm implementing a web-based solution (Java, Spring, Hibernate) that allows the creation/authoring of task-centric workflow documents. Basically a workflow ...
0
votes
2answers
91 views

Repetitive code for different Database Entities with same implementation

I have this code in LogInService public User isValid(User user) { if(user == null) return user; User db_user = userDao.getUserByUsername(user.getUsername()); if ...
1
vote
1answer
227 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. ...
2
votes
1answer
91 views

Any problems in using hibernate's session.connection() to run native sql

In my project, they use Hibernate's session the below mentioned way and then save entity objects with in a transaction. Session session = HibernateUtil.getCurrentSession(); ...
1
vote
1answer
838 views

Hibernate proxy converter for GWT

Here's a class that converts Hibernate proxies to normal classes. This is useful with GWT for example, when sending objects loaded from database to the GWT client. Please review it. package ...
1
vote
2answers
412 views

Hibernate transaction advice [closed]

I'm new to Hibernate so I need some advice/direction on doing Transactions. I have a DAO like public class MyDao extends HibernateDaoSupport implements IMyDao { @Override public Foo getFoo(int ...