logo       


Mapping Help: msg#00386

Subject: Mapping Help
I need a bit of help with setting up a mapping file or 2.  I have a
POJO called Filter.  I use this to store options from the user as for
search criteria.  I have a database that relates to this filter.

The problem I am having is I have 2 List properties that are part of
Filter.  1 is Status and the other is Users.  I have both the Status
class and User class mapped with iBatis.  No problem there.

I have created 2 more tables.  t_filter_status and
t_filter_assignment.  t_filter_status stores a filterId and a
statusId.  t_filter_assignment also holds a filterId and a userId.

I need to create the Filter mapping in iBatis so that when I save the
Filter object to the database, I also create records in the
t_filter_status and t_filter_assingment tables.  This may just be a
matter of getting the SQL right but I am not 100% sure if I am even
thinking about this the right way.  Here is an example

t_filter
------------------------------------------------------
- 1 - filtername - 04/24/05 - 04/25/05 -
------------------------------------------------------

t_filter_status
-----------
- 1 - 2 -
- 1 - 0 -
- 1 - 1 -
----------

t_filter_assignment
-----------------
- 1 - 9715 -
- 1 - 8765 -
----------------

I hope this makes some sense.  If you need more information just let me know.

Thanks

Gregg



Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
Search:
Java, servers, webhosting, windows, cisco ...
more...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe