Interesting, but this sounds a bit dangerous to me.
How about a Utility that lets you check if an Entity exists at
all...instead of throwing nasty errors. Or am I still back in the dark
ages and this already exists in the trunk?
Thanks much for you attention to this.
Best Regards,
Ruth Hoffman
On 3/7/12 11:16 AM, Adrian Crum wrote:
What permission checks would be performed?
-Adrian
On 3/7/2012 2:53 PM, Jacopo Cappellato wrote:
I am resurrecting the initial thread when the "entity-auto" engine
was implemented; this is a great addition but we could even push it
at a further level (again following the "configuration by exception"
strategy):
why don't we make it optional the service definition for crud services?
The idea is that, if I call:
Map result = dispatcher.runSync("createExampleEntityName",
UtilMisc.toMap(...));
and the system can't find a service definition for
createExampleEntityName but it finds an entity definition for
"ExampleEntityName" then it calls the "entity-auto" service for it.
Of course same applies to create/update/delete.
At that point, as soon as we define an entity we will also have
automatically the CRUD services.
Jacopo