1

I'm mapping a legacy database. The view is read-only.

@Column(name = "book_id", columnDefinition = "uniqueidentifier")
public String getBookId() {
    return this.bookId;
}

This gives the error

for column book_id. Found: uniqueidentifier, expected: `uniqueidentifier`

This is using spring boot, JPA with sql server, driver class name com.microsoft.sqlserver.jdbc.SQLServerDriver

Interlated
  • 5,108
  • 6
  • 48
  • 79
  • Possible duplicate of [JPA: how to map SQL Server uniqueidentifier type](https://stackoverflow.com/questions/10451772/jpa-how-to-map-sql-server-uniqueidentifier-type) – K.Nicholas Aug 28 '18 at 18:30
  • It uses the 'uniqueidentifier' definition. I get this back-tick enclosed response. – Interlated Aug 28 '18 at 20:55

0 Answers0