views:

17

answers:

0

I have a class using the @Any annotation to store references to arbitrary persistable object ... @Any(metaColumn = @Column(name = "IFT_CD")) @AnyMetaDef(idType = "long", metaType = "long", metaValues = { @MetaValue(targetEntity = Participation.class, value = "101"), @MetaValue(targetEntity = WhatEver.class, value = "102") }) @Cascade({org.hibernate.annotations.CascadeType.ALL }) @JoinColumn(name="FIELD_ANY_ID") private PersistentObjectBase anyReference; ...

works fine until I try using it in combination with FLEX/BlazeDS: after serialisation to and from the client, hibernate does no longer store the id of the referenced object in column "FIELD_ANY_ID", but generates an INSERT statement using a non-existing column name "anyReference".

Any ideas?