If you are using the HibernateAssembler, take attention in your named query. If you run into this error
Error: Unknown Property: ‘constructor’.
at mx.collections::ListCollectionView/http://www.adobe.com/2006/actionscript/flash/proxy::getProperty()
at mx.data.utils::Managed$/normalize()
at mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal::normalize()
at mx.data::DataList/http://www.adobe.com/2006/flex/mx/internal::processSequence()
at mx.data::DataList/http://www.adobe.com/2006/flex/mx/internal::processSequenceResult()
at DataListRequestResponder/result()
at mx.rpc::AsyncRequest/acknowledge()
at NetConnectionMessageResponder/resultHandler()
at mx.messaging::MessageResponder/result()
you have to change your named query.
Do not use a named query like
<query name=“Employee_findByUser”>
<![CDATA[
select new list(employee)
FROM Employee AS employee
WHERE employee.user.id.pid = :userIdPid
]]>
</query>
You have to make it like
<query name=“Employee_findByUser”>FROM Employee AS employee WHERE employee.user.id.pid = :userIdPid</query>
It is very hard to find this error, because you see that Hibernate fires the Select but than you get an exception in the client.