> Using hibernate it is possible to do the following ( pseudo code ) > > SalesPerson salesPerson = hibernate.find( "SalesPerson as > salesperson where salesperson.id = 1"); >
Why not just use the username (which should be unique) to lookup the SalesPerson? SalesPerson salesPerson = hibernate.find( "SalesPerson as salesperson where salesperson.username = ?", user.getUsername()); Assuming there's and index on username performance would not be an issue. Ollie ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Acegisecurity-developer mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer