Skip to main content

All Questions

Tagged with
7 votes
3 answers
17k views

Transaction handling in DAO or Service layer in pure JDBC without frameworks

I have an application which works with pure JDBC. I have a dilemma where should transaction handling go, in Service or DAO layer. I have found that in most cases it should be implemented in Service ...
rand0rn's user avatar
  • 189
3 votes
1 answer
1k views

Is it good practice to access database in mapping between object

Situation I receive message from a 3rd party, and these messages are use to create or update database information. Message and data to be updated can be de-serialize in object form, but are not ...
Teocali's user avatar
  • 133
3 votes
2 answers
978 views

java classes and database queries

Can someone please explain the best way to solve this problem. Suppose I have three classes Person Venue Vehicle I have a DAO method that needs to return some or all of these attributes from each of ...
Marc's user avatar
  • 33