package io.reflectoring.coderadar.core.projectadministration.domain;

import javax.persistence.*;
import lombok.Data;

/** a user of application, who has to login to access to functionality */
@Entity
@Table(
  name = "user_account",
  uniqueConstraints = {@UniqueConstraint(columnNames = "username")}
)
@SequenceGenerator(name = "user_sequence", sequenceName = "seq_user_id", allocationSize = 1)
@Data
public class User {

  @Id
  @Column(name = "id")
  @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "user_sequence")
  private Long id;

  @Column(name = "username", nullable = false)
  private String username;

  @Column(name = "password", nullable = false)
  private String password;
}

@@ -110,16 +110,60 @@
 ok.Data;
+%0Aimport org.neo4j.ogm.annotation.NodeEntity;
 %0A%0A/** a 
@@ -235,16 +235,20 @@
 */%0A@
+Node
 Entity%0A@
 Tabl
@@ -247,483 +247,78 @@
 ty%0A@
-Table(%0A  name = %22user_account%22,%0A  uniqueConstraints = %7B@UniqueConstraint(columnNames = %22username%22)%7D%0A)%0A@SequenceGenerator(name = %22user_sequence%22, sequenceName = %22seq_user_id%22, allocationSize = 1)%0A@Data%0Apublic class User %7B%0A%0A  @Id%0A  @Column(name = %22id%22)%0A  @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = %22user_sequence%22)%0A  private Long id;%0A%0A  @Column(name = %22username%22, nullable = false)%0A  private String username;%0A%0A  @Column(name = %22password%22, nullable = false)
+Data%0Apublic class User %7B%0A  private Long id;%0A  private String username;
 %0A  p

Convert the entity User to Neo4j