I have the following query that works perfectly with ms-SQL but failing with oracle
there is sample query, the original is way complicated but this one reproduces the error
@Query("SELECT new Map((s.name + ' - ' + s.name) as name , s.idStandard as idStandard) FROM Standard s ")
jpa model
public class Standard
{
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(unique = true, nullable = false)
private int idStandard;
@Column(name = "Name")
@NonNull
private String name;
@Column(name = "Description")
private String description;
@Column(name = "UpdateUser")
private String updateUser;
@Column(name = "UpdateDT")
private Date updateDt;
}
why oracle thinks this is (s.name + ' - ' + s.name) is a number ?