I am using
Java: 19
Springboot: 3.0
Dependency
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-cassandra</artifactId>
</dependency>
Entity class
@Table
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Player {
@PrimaryKey
private UUID id;
Would like to know if there is anything like
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
that we can use with it.
is not auto generating the id.
One way is assigning default during declaration value like
but still, I consider this as a workaround.