title: React.js - get enum values from class in Spring Boot
body: <p>I have a class:</p>
  <pre><code>@Data
  @Entity
  public class NewOrder {
       @Id
       @GeneratedValue(strategy = GenerationType.AUTO)
       @Column(name = &quot;Id&quot;)
       private int Id;
       private Date createdAt = new Date();
       private  Type types;
       public enum Type {
              ONDELIVERY, INADVANCE
            }
       @ManyToMany
       private  List&lt;Product&gt; products = new ArrayList&lt;&gt;();
       public void addProduct(Product product) {
              this.products.add(product);
            } 
  }
  </code></pre>
  <p>I want to show available enum values of Type in React form. How could I get them? Is it possible without creating a new class with its own controller?</p>