I have an entity with a composite key
@Entity
data class Page(
@EmbeddedId
val pageId : PageId,
...
)
@Embeddable
data class PageId (
@Column(name = "id")
val id: UUID,
@Column(name = "is_published")
val isPublished: Boolean
)
But I need to respect the existing column names in the db table, which are 'id' and 'is_published' But querying the db with a JDBCRepository I get the error:
SQL Error executing Query: ERROR: column page_.page_id_published does not exist
Is there any way that I can map the columns correctly?