Re: [appfuse-user] hibernate query related

2007-06-19 Thread j2ee dodo
June 20, 2007 3:28 AM Subject: [appfuse-user] hibernate query related I have two entities user and promotions and and a I have a joined table userPromotions with `userID`, `promotionID` and an additonal column `used` and i have mapped the join table to a collection of elements. It is setup so th

Re: [appfuse-user] hibernate query related

2007-06-19 Thread fadhli
Hi there, a good place to start is by looking at the Spring API for Hibernate Template. See *org.springframework.orm.hibernate.HibernateTemplate* On 6/19/07, kace <[EMAIL PROTECTED]> wrote: I have two entities user and promotions and and a I have a joined table userPromotions with `userID`,

Re: [appfuse-user] hibernate query related

2007-06-19 Thread Michael Horwitz
If you have an additional column in the mapping table then you will need to map it as an entity (rather than a vanilla join) if you want to get access to the additional field. Mike On 6/19/07, kace <[EMAIL PROTECTED]> wrote: I have two entities user and promotions and and a I have a joined ta

[appfuse-user] hibernate query related

2007-06-19 Thread kace
I have two entities user and promotions and and a I have a joined table userPromotions with `userID`, `promotionID` and an additonal column `used` and i have mapped the join table to a collection of elements. It is setup so that the ManyToOne is ponted at Users and the parent is promotions. Ever