ibatis domain modelling
        Posted  
        
            by josh
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by josh
        
        
        
        Published on 2010-04-26T13:46:03Z
        Indexed on 
            2010/04/26
            16:03 UTC
        
        
        Read the original article
        Hit count: 334
        
Hi team;
I am working on the domain model for a project. I have a class named user that has a class named UserType as one of the properties. I know when i want to select all users, i will use joins to pick up all corresponding usertypes. How do i do inserts? Do i have to write a handler for userType? or can i do something like
INSERT INTO users(... usertype_id ...) VALUES(... #{usertype.usertype_id}...)
Please help;
I have spent the whole day trying to figure this out. Am using ibatis 3.0 and am new to ibatis.
Regards Josh
© Stack Overflow or respective owner