Re: delete() without find()
"dreysfy" <[email protected]> Wed, 30 Jun 2010 15:13:46 -0000
| Newsgroups | gmane.comp.java.orm.simpleorm |
|---|---|
| Message-ID | <[email protected]> |
Hi, keep it simple. If you want to delete objects efficiently then why not use a raw sql statement? It is obvious, that you would not retrieve any of such objects. And you don't have to worry about data consistency if you do it in a separate session: Just begin, delete, commit a session and you are finished. I dont see a need of such method. More interesting however is creating a bunch of new objects. But thats a different discussion :-) Greets Andre --- In [email protected], Noel Grandin <noel@...> wrote: > > Hi > > I want to delete a record by primary key. But there doesn't seem to be any way of doing this without triggering a load(). > > It seems like there should be a method on Session like > > void delete(SRecordMeta<RI> rmeta, Object... keys) > > ?? > > Regards, Noel > > Disclaimer: http://www.peralex.com/disclaimer.html > ------------------------------------ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/SimpleORM/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/SimpleORM/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/