ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brandon Goodin <brandon.goo...@gmail.com>
Subject Re: raltation and inserts
Date Mon, 10 Jan 2005 15:34:14 GMT
You would perform an insert like any other. The guide does describe
how to insert.

Brandon


On Mon, 10 Jan 2005 13:22:02 +0100, David Nielsen <dn@videone.dk> wrote:
> Hi,
> 
> I have 2 classes:
> 
> Account
>     private int id;
>     private String username;
>     private String password;
>     private Collection groups;
> 
> Group
>     private int id;
>     private String name;
> 
> the db has 3 tables;
> 
> ACCOUNT
> GROUP
> ACCOUNT_GROUP_REF
> 
> where ACCOUNT_GROUP_REF is a join table for my relations,
> with 2 collumns:
> ACCOUNT_ID
> GROUP_ID
> 
> Now my question is how do i keep my ACCOUNT_GROUP_REF updated,
> 
> the Developer guide describes how to setup selects only,
> but what about insert and updates, of the relations ??
> 
> Regards,
> David Nielsen
>

Mime
View raw message