Saher Al-Sous
12/20/2022, 9:04 AM@Table
annotation?
Using a bean or overrides?Ties
12/20/2022, 11:12 AMSaher Al-Sous
12/20/2022, 11:23 AMTies
12/20/2022, 11:24 AMSaher Al-Sous
12/20/2022, 11:26 AMTies
12/20/2022, 11:28 AMSaher Al-Sous
12/20/2022, 12:30 PM@Configuration
class... will learn on the migration toolsSaher Al-Sous
12/21/2022, 8:30 AM@Data
annotations from data classes, all tables were created!Ties
12/21/2022, 8:31 AMSaher Al-Sous
12/21/2022, 8:31 AMSaher Al-Sous
12/21/2022, 8:32 AM@Data
@AllArgsConstructor
@NoArgsConstructor(access = AccessLevel.PRIVATE, force = true)
@Table("ingredients")
data class Ingredients(
@PrimaryKey
val id: String,
val name: String,
val type: Type
)
now it is
@AllArgsConstructor
@NoArgsConstructor(access = AccessLevel.PRIVATE, force = true)
@Table("ingredients")
data class Ingredients(
@PrimaryKey
val id: String,
val name: String,
val type: Type
)
thats it.Ties
12/21/2022, 8:34 AMdata class
that you use here already has getters, toString, equals, hashcode and a allargs constructor. So im not sure how the lombok annotations will work with that.Ties
12/21/2022, 8:35 AMSaher Al-Sous
12/21/2022, 8:37 AMSaher Al-Sous
12/21/2022, 8:40 AMTies
12/21/2022, 8:59 AMSaher Al-Sous
12/21/2022, 9:00 AM