Annotation Type MapKeyManyToMany


@Target({METHOD,FIELD}) @Retention(RUNTIME) @Deprecated public @interface MapKeyManyToMany
Deprecated.
Use MapKeyJoinColumn MapKeyJoinColumns This is the default behavior for Map properties marked as @OneToMany, @ManyToMany or @ElementCollection
Define the map key columns as an explicit column holding the map key This is completely different from MapKey which use an existing column This annotation and MapKey are mutually exclusive
  • Element Details

    • joinColumns

      Deprecated.
      Default:
      {}
    • targetEntity

      Class targetEntity
      Deprecated.
      Represent the key class in a Map Only useful if the collection does not use generics
      Default:
      void.class