On 24/08/09 18:40, aaaaaa wrote:

for example, when I delete User entity I need to set active = false , instead
of actually deleting the record.

can't you set the attibute "active = false" and then use normal persistence instead of delete?

During user search you can set "active = true" in the search pattern...

I misunderstand?

Edoardo


Jody Grassel wrote:

I don't think that the SQL generated by OpenJPA entitymanager operations
can be directly modified.  What sort of modifications are you looking
for?  There might be supported function to direct OpenJPA to create the
sort of SQL that you are looking for.

On Sun, 2009-08-23 at 19:35 -0500, aaaaaa wrote:
hi all,
can I change sql statement which is about to be executed at @prepersist?
thanks,

Alex.






Reply via email to