UVAshley / krank

Automatically exported from code.google.com/p/krank
0 stars 0 forks source link

Avoiding multiples configuration lines for transaction #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi there.

It's not really an issue but it makes you creating interfaces when not needed.

What steps will reproduce the problem?
1. Concerning transaction for multiple DAOs :
In How to Use DAO : Use the DaoFactory to configure a Generic DAO,
I feel that the way its done force you to create Interfaces, which is not
necessary if genericDao suit my needs.

What is the expected output? What do you see instead?
Creating transactionnal Daos with the minimal lines of xml configuration,
and without creating interfaces.

What version of the product are you using? On what operating system?
crud dao 0.2, with spring 2.0.3 on linux.

Please provide any additional information below.

You can use instead configuration as shown in attached file.
(note that i've put autowire="byName" just to clarify the xml)

Hope it helps.
See you, and well done for this generic crud dao, i've adopted it.

Original issue reported on code.google.com by arnaud.b...@gmail.com on 3 Jul 2007 at 2:49

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks. On a project we are working on... we do use bare naked DAOs w/o 
interfaces. 
But find that we end up adding named queries so we started adding interfaces 
almost 
always.

Original comment by RichardH...@gmail.com on 6 Sep 2007 at 3:58