From: Dain S. <da...@da...> - 2003-01-17 18:14:35
|
On Friday, January 17, 2003, at 11:08 AM, Jeremy Boynes wrote: > This leaves the JBoss-QL part read-only (it just qualifies the > instances to > be deleted). We know we're deleting Transactions as the method would > be on > the home interface for the Transaction EJB. I think we should support a full CRUD language. Specifically, I mean that the user should not be restricted to just specifying the WHERE clause, but they should be required to specify a DELETE clause also. Then we just put in a restriction that a remove method on the home interface is only allowed to remove entities of the current type. This is the same restriction finders have. The reason I think we should have a full CRUD language is it allows an ejbSelect style method (although we may call it something else) to delete any set of objects with a single operation. This will be particularly useful to delete a subset of related objects. -dain |