> -----Ursprungliche Nachricht----- > Von: [EMAIL PROTECTED] [mailto:ambika@;iitk.ac.in]Im Auftrag von apdas > Gesendet: Mittwoch, 30. Oktober 2002 22:39 > An: Turbine User > Betreff: Problem with peers > > > Hi friends, > > I am still a novice in turbine. I want to retrieve the GROUP_ID for a > particular GROUP_NAME from the TURBINE_GROUP table. I can get the value > in object form. When I print it I get something like {'120'} > > How do I get the number 120 from the above result ?
I would do that using the Peer directly: Criteria c = new Criteria(); c.add(TurbineGroupPeer.GROUP_NAME,"thegroupname"); NumberKey key = TurbineGroupPeer.doSelect(c).get(0).getGroupId(); then you can parse an int or whatever from the NumberKey. Good luck! Marc -- To unsubscribe, e-mail: <mailto:turbine-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:turbine-user-help@;jakarta.apache.org>
