hoping this is a easy question. How do you get the CrudRepository to skip making a field in the db table? i.e.
@Table
class Property(@Id val id: String?, val name: String, val objectType: String, currentValue: String?) {
}
lets say I only wanted a table with id & name created, skipping the others. Is that possible?
Thank you!
>Solution :
You are seeking @Transient annotation.
Put the annotation above your field and Hibernate doesn’t persist it.
For more: Kotlin, JPA and @Transient