I am not able to provide the proper identifier that resolved properly at hibernate layer.
actualy coulmn AD_USR_ACC_ID but in hibernate query it is getting modified like this - adUsrAccId
i even used naming-strategy: org.hibernate.cfg.ImprovedNamingStrategy but no luck
@Entity
@Table(name = "OWNER.SAMPLE_TABLE")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class SampleTableRepo implements Serializable {
private static final long serialVersionUID = 1L;
@Column(name = "AD_USR_ACC_ID")
private Integer adUsrAccId;
converted query like this -
Hibernate:
select
sampleprd0_.adUsrAccId as adUsrAccId9_1_0_
from
OWNER.SAMPLE_TABLE sampleprd0_
where
sampleprd0_.adUsrAccId=?
Error is -
{"message":"could not extract ResultSet [n/a]","timestamp":1629212973851,"log.level":"DEBUG","logger.name":"org.hibernate.engine.jdbc.spi.SqlExceptionHelper","thread.name":"http-nio-8080-exec-1","error.class":"java.sql.SQLSyntaxErrorException","error.message":"ORA-00904: \"SAMPLEPRD0_\".\"ADUSRACCID\": invalid identifier\n","error.stack":" at