Re: Persitence Interface

2006-10-29 Thread Clinton Begin
I can't remember, but are the discriminator features documented anywhere?  Wiki or otherwise?Cheers,ClintonOn 10/29/06, Larry Meadors <[EMAIL PROTECTED]> wrote:Look into using a discriminator - they work great for what you are describing. Here is a reay terse example: It looks

Re: Persitence Interface

2006-10-29 Thread Larry Meadors
Look into using a discriminator - they work great for what you are describing. Here is a reay terse example: It looks at the type column, and based on the value, uses a different result map. Neat, huh? Larry On 10/29/06, Andreas Prudzilko <[EMAIL PROTECTED]> wrote: He

Persitence Interface

2006-10-29 Thread Andreas Prudzilko
Hello, I have one interface Template and several Subclasses for it, AbstractTemplate, PageTemplate and so on. They are all persisted in the same table though, distinguished by a column called "type". I was wondering how I can tell ibatis to create instances of the right classes based on the