Hello all,
Has anyone had any success with using the Hibernate specific annotation of @SQLDelete in a Roo entity?
I want to implement soft delete but have not had much success. Ideally, I'd like to be able to do this from a mapped superclass. But I need to get this working first.
I'm using:
- STS 2.8
- Roo 1.2M1
- JPA with Hibernate as my provider
- MariaDB
Found this information HERE though it is a bit dated.
Code:
...
@SQLDelete(sql="UPDATE client SET active = (0) WHERE id = ?")
public class Client extends Person {
...
Upon attempting to delete from my app, I'm getting the following error in the STS console.
Code:
ERROR org.hibernate.util.JDBCExceptionReporter - Parameter index out of range (2 > number of parameters, which is 1).
A point in the right direction would be most appreciated.
Thanks!