Hi 

I`m doing some bigger problem with LCDS / Hibernate annotation and
still I`m reaching some problems.

Lets suppose such structure

public class Order 
(
  @Id
  private int id; 

  private String code;
  
  @OnetoMany(fetch=FetchType.EAGER)  
  private Set<OrderItem> orders;

  getters, setters..

)

So it`s simple OneToMany relation - AS3 class is proper constructed
with orders:ArrayCollection - everything works fine

But the case it that I want the 'orders' field to be read only
(because my app will never change it - it`s even view-based not table ). 

So i don`t want Flex to send this field back to the server , while
something in Order item changes. My application should change only the
code value. Right now when I`m changing code value - Flex is sending
whole orders array , and is trying to update it. 


Can I set somehow 'read-only' flag in Hibernate/LCDS ? setting it in
data-management-config , in <metatada><one-to-many.. > doesn`t work.

Maybe I should set this field [Transient] in AS3 ?


Thanks

Best regards


Reply via email to