Skip to content

Commit

Permalink
GenerationType.AUTO
Browse files Browse the repository at this point in the history
  • Loading branch information
jesperancinha committed Dec 24, 2024
1 parent bd2eb5e commit 133f09a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import org.springframework.stereotype.Component

@Entity
data class Concert(
@Id @GeneratedValue(strategy = GenerationType.IDENTITY)
@Id @GeneratedValue(strategy = GenerationType.AUTO)
var id: Long? = 0,
val name: String,
val location: String,
Expand All @@ -28,7 +28,7 @@ data class Concert(

@Entity
data class Listing(
@Id @GeneratedValue(strategy = GenerationType.IDENTITY)
@Id @GeneratedValue(strategy = GenerationType.AUTO)
val id: Long?,

@OneToOne
Expand Down Expand Up @@ -75,7 +75,7 @@ data class Listing(

@Entity
data class Music(
@Id @GeneratedValue(strategy = GenerationType.IDENTITY)
@Id @GeneratedValue(strategy = GenerationType.AUTO)
val id: Long?,

val name: String,
Expand Down Expand Up @@ -110,7 +110,7 @@ data class Music(

@Entity
data class Artist(
@Id @GeneratedValue(strategy = GenerationType.IDENTITY)
@Id @GeneratedValue(strategy = GenerationType.AUTO)
val id: Long?,
val name: String,
val gender: Gender,
Expand Down

0 comments on commit 133f09a

Please sign in to comment.