title: How can you create a multiple enum using jhipster-jdl?
body: <p>Let say that we have the following entities and the enum of languages:</p>
  
  <pre><code>entity Resources{
      title String required,
      text Language,
      audio Language
  }
  
  enum Language{
      SPANISH, ENGLISH, FRENCH, GERMAN
  }
  </code></pre>
  
  <p>And we would like that the audio is a dropdown list where you can choose only one, but the text could be a list where you can choose more than one. </p>
  
  <p>How can you tell Jhypster-JDL that you want to use an array of Languages?</p>
  
  <p>It only lets you choose one... should it be done in the code once it is created?</p>
  
  <p>Thanks</p>
  
  <p>PD: I thought about that, but the problem with creating a language entity and define audio as a one-to-one relationship while text would be a one-to-many relationship like this is that the name variable gets repeated and crashes:</p>
  
  <pre><code>entity Resource{
  title String required
  }
  
  entity Language{
      languages Languages
  }
  
  enum Languages{
      SPANISH, ENGLISH, FRENCH, GERMAN
  }
  
  // RELATIONSHIPS:
  relationship ManyToOne {
      Language{resource(closedcaption)} to Resource
  }
  
  relationship OneToOne {
      Resource{language} to Language{resource(video)}
  }
  
  // Set pagination options
  paginate Resource with pagination
  
  // Set service options to all except few
  service all with serviceImpl
  
  @ManyToOne
  private Resource resource;  &lt;---
  
  @OneToOne(mappedBy = "language")
  @JsonIgnore
  private Resource resource; &lt;---
  </code></pre>
  
  <p>So, I might be making a mistake, but I would like to know if besides this solution, is there a way to have an array of something defined in JDL? Let's say an array of Strings?</p>
  
  <p>Thanks again, you are really helpful!</p>