Hello, I'm trying to use annotations for mapping a POJO to a MSSQL Stored Procedure, see below:
@Entity(name="PrecoDiaAjustado", entityType=EntityType.BMP, access=AccessType.PROPERTY, version=3)
@NamedQuery(name="PrecoDiaAjustado_SP", queryString="{call a_ADDIN_GetDadoAjustado(?, ?, ?, ?)}", resultType="br.com.valoriza.addin.acoes.persistencia.PrecoDiaAjustado")
Why I gets the exception?
org.hibernate.QueryException: unexpected char: '{' [{call a_ADDIN_GetDadoAjustado(?, ?, ?, ?)}]
What's the right way to do it?
[]s
Ary Junior
|