Replies: 1 comment 1 reply
-
Did you create this discussion at the wrong repo? We have nothing to do with java. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
GeneratedValue(strategy = GenerationType.IDENTITY)to set userId usebut my coworker suggest to change it as emails so that easy to put in database. I do some research on how to set userId as email but I cannot find it. Can anyone help me? thanks
package com.disb.TicketingSystem.user;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@table(name = "users")
@entity
public class User {
}
Beta Was this translation helpful? Give feedback.
All reactions