A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
Object Relational Mapping
iBATIS multiple parameterClass
Alex Belisle Turcot
Joined: Apr 26, 2005
May 25, 2007 12:31:00
I'm new to iBATIS and I'm developing "myFirstiBATIS" project.
I have a table of user/password and a table of user/roles.
One user can have multiple roles. In my Java model, I have a User class, a username, password and a list of Roles (
To insert a user, I pass my User class as parameterClass.. this is fine.
-> insert username, password..
After that, I want to do multiple inserts for each role. How can I do that ? I need to pass the role and the username as parameter ?
insert user1, role1
insert user1, role2
insert user1, role3
Firstly, is it possible to pass more than 1 parameterClass? Or to iterate through the list for multiple inserts ?
I hope I was clear enough so you understand what I'm looking for.
Joined: Apr 04, 2008
Apr 04, 2008 01:01:00
Did you get a solution to this.. I am stuck in the same problem?
I agree. Here's the link:
subject: iBATIS multiple parameterClass
wildcard for tomcat-users.xml users
iBatis, AS400: generated primary key value in code
privileges in oracle database
HTTP Status 403 Access to the requested resource has been denied
Studying HeadFirst book: cannot make authentification
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014