How to access to a Business Object?
I'm trying to get access to a row in a Businnes Object from an external process (I cannot access from context) but I cannot do this, I get the following exception:
This is my code:
Supplier sp = SupplierDAO.findById(Long.parseLong(supplierSupplier.get("persistenceId")));
What's wrong with my code?, am I trying to access properly?
===== UPDATE =====
This is so frustrating, I'm trying to access via query, but I get this error:
=============== Thanks in advance.
Hi, try casting the persistence id into long like this, and be carefull to use 'supplierDAO' and not 'SupplierDAO'
Supplier sp = supplierDAO.findById(supplierSupplier.persistenceId.toLong())
sp.name = supplierSupplier.name