Never mind, I've found the answer. Actually I've already in the right direction, it was just a typo. In the datagridcolumn I just simply create a renderer and data can be referenced through -> "data.id.orderId" thanks
On 7/16/08, Yohanes Iwan Sugiarto <[EMAIL PROTECTED]> wrote: > > Hi.. > I'm using LCDS with Hibernate as dataservice. > I have no problems with table using single id (primary key). > > Question is: how do I represent composite-id in an actionscript class? > I have tried to make composite keys as a separate object (also in the > server side Java class). > Here's the code snippet of Java classes: > > OrderDetail.java > private OrderDetailKey id; > private Long qty; > private String itemCode; > //...public getters & setters.... > > OrderDetailKey.java > private String orderId; > private Long lineId; > //...public getters & setters.... > > And here are the ActionScript classes: > > OrderDetail.as > public id:OrderDetailKey = new OrderDetailKey(); > public qty:int = 0; > public itemCode:String = ""; > > OrderDetailKey.as > public orderId:String; > public lineId:int; > > Am I going in the right direction? > How do I refer orderId and lineId in datafield property of datagridcolumn? > I've tried id.orderId and id.lineId, but failed. > In the server debug log, I can see that OrderDetail did serialized as > expected (orderId and lineId as a typed object of OrderDetailKey) > > > Or, does anyone know working sample of using composite-id in Hibernate with > Flex? > I've seen Peter Ent's sample on Flex-Hibernate, but AFAIK his sample uses > single id. > It's not possible for me to change the database design I'm currently > working on. > > Thank you. > > -- > / i w a n > -- / i w a n

