|
I've this @Formula annotation in my entity bean:
@Formula(value = "(SELECT DATE_ADD(v.dataAndata, [INTERVAL] v.minutiTrasportoAndata [MINUTE]) FROM VenditaB2B v WHERE v.id = id)")
Unfortunately seems that Hibernate don't escape [ and ] chars so the native query is wrong because [ and ] are still present in the final query.
I think this is a bug because @Formula should escape that chars as the @Column annotation does.
|