Hi all
My question is about if an iBatis Dao can be injected in a non-DAO class to
use its services.
Can I write so?
public SomeThing methodOfNonDaoClass() {
try {
dao.startTransaction();
dao.startBatch();
dao.insert(myData);
for() {
dao.update()
}
dao.executeBatch();
dao.commi
There's nothing automatic. The easiest thing to do is regenerate the
the code with the (as yet unreleased) new version of Ibator. It's
very easy to build with Maven - I'm just struggling to find time to
deal with the all too cumbersome Apache release process.
I've done some thinking about an iba
Yes.
On Fri, May 7, 2010 at 7:29 AM, Giorgio Vespucci
wrote:
> Hi all
>
> My question is about if an iBatis Dao can be injected in a non-DAO class to
> use its services.
>
> Can I write so?
>
>
> public SomeThing methodOfNonDaoClass() {
>
> try {
> dao.startTransaction();
> dao.startBatch();
>
>
Let me know if this is still a problem, and create a JIRA ticket if it is.
I should have some time this weekend to look into it.
Clinton
On Wed, May 5, 2010 at 9:16 PM, Clinton Begin wrote:
> Two things to do:
>
> * Create a JIRA ticket for this. We'll continue conversation and
> investigation
Clinton
Thanks for pinging me.
I have not had a chance to look at it, and it is still an issue, before rushing
out and creating a jira ticket for it I wanted to look at the code diffs
between the two releases, I will try to get to it later today or this WE.
François
On May 7, 2010, at 10:33 A
>From technical point of view it is ok, but I would suggest to keep all the
database related code in DAO class, because what are you doing here is
mixing two layers that should be kept separate, BO and DAO.
Regards,
Maciej
On Fri, May 7, 2010 at 10:15 PM, Larry Meadors wrote:
> Yes.
>
> On Fri,
On Fri, May 7, 2010 at 8:21 PM, Maciej Radochonski
wrote:
> From technical point of view it is ok, but I would suggest to keep all the
> database related code in DAO class, because what are you doing here is
> mixing two layers that should be kept separate, BO and DAO.
I couldn't disagree more. :
On 5/6/2010 6:27 AM, Metsovuori Juho wrote:
private List friends = new ArrayList();
You should be using a Collection for friends, not an association.
--
Guy Rouillier
-
To unsubscribe, e-m
Thanks for the info Jeff! I do not have a deadline for having to switch to
iBATIS 3.0. I can wait until the new version of Ibator is released and then
regen the mapper files. I'll continue to study the dynamic SQL described in
iBATIS 3.0, when I have time.
Don Clary
> -Original Message