0

I am running a JHipster application, and I was wondering if I could use the JDL studio to design an entity with generic types.

Given the following entity class:

     @Entity
      public class Box<T>{

      @Any
      private T t;   

      @Id
      private long id;

       public void setT(T t) {
            this.t = t;
        }
    }

And mapping the following Entity as described in the JDL, what configuration can I use with Hibernate in such case?

CopsOnRoad
  • 237,138
  • 77
  • 654
  • 440
Seif Eddine Mouelhi
  • 2,161
  • 3
  • 19
  • 25

0 Answers0