World.java 306 B

1234567891011121314
  1. package hello.model;
  2. import javax.persistence.Entity;
  3. import javax.persistence.GeneratedValue;
  4. import javax.persistence.GenerationType;
  5. import javax.persistence.Id;
  6. @Entity
  7. public class World {
  8. @Id
  9. @GeneratedValue(strategy = GenerationType.AUTO)
  10. public int id;
  11. public int randomNumber;
  12. }