sergiiio / generic-dao

Automatically exported from code.google.com/p/generic-dao
0 stars 0 forks source link

javax.transaction:jta:jar:1.0.1B not found #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. i download the code (svn)
2. run mvn install 

maybe a dependence in the pom file ?

Original issue reported on code.google.com by matiasbe...@gmail.com on 28 Aug 2009 at 5:37

GoogleCodeExporter commented 8 years ago
do you have to download the file jta.jar and intall it with "mvn install" 
command

Original comment by ccha...@gmail.com on 9 Sep 2009 at 5:56

GoogleCodeExporter commented 8 years ago
yes, now work fine. but maven not install this automatically.

Thanks !

Original comment by matiasbe...@gmail.com on 9 Sep 2009 at 6:04

GoogleCodeExporter commented 8 years ago
By the way, i need your help, because i can't save or update in the database,
GenericDao does nothing. Thanks a lot.

Original comment by ccha...@gmail.com on 11 Sep 2009 at 5:12

GoogleCodeExporter commented 8 years ago
use you transactions ?

Original comment by matiasbe...@gmail.com on 11 Sep 2009 at 6:28

GoogleCodeExporter commented 8 years ago
Do not use transactions because it assumed that the GenericDao do it 
internally, and
which is not really the way to implement it with this library

Original comment by ccha...@gmail.com on 11 Sep 2009 at 6:48

GoogleCodeExporter commented 8 years ago
but if you never do the commit command, you data can´t persist. try that (if 
you
like, in the dao)

Original comment by matiasbe...@gmail.com on 11 Sep 2009 at 6:52

GoogleCodeExporter commented 8 years ago
Can you say me how???

Original comment by ccha...@gmail.com on 11 Sep 2009 at 7:26

GoogleCodeExporter commented 8 years ago
getCurrentSession().beginTransaction();
getCurrentSession().getTransaction().commit();

in a try catch statement, in the exception block, can use 
getCurrentSession().getTransaction().rollback();

this is not the best lovely, must pretty is with Aspect

Original comment by matiasbe...@gmail.com on 11 Sep 2009 at 7:32

GoogleCodeExporter commented 8 years ago
in my Dao I do all that in the GenericDao is already done?

Original comment by ccha...@gmail.com on 11 Sep 2009 at 7:58