注释类型 CollectionId


  • @Target({METHOD,FIELD})
    @Retention(RUNTIME)
    public @interface CollectionId
    Describe an identifier column for a bag (ie an idbag). EXPERIMENTAL: the structure of this annotation might slightly change (generator() mix strategy and generator
    作者:
    Emmanuel Bernard
    • 必需元素概要

      所需元素 
      修饰符和类型 必需的元素 说明
      javax.persistence.Column[] columns
      Collection id column(s).
      String generator
      The generator name.
      Type type
      id type, type.type() must be set.
    • 元素详细资料

      • columns

        javax.persistence.Column[] columns
        Collection id column(s).
      • type

        Type type
        id type, type.type() must be set.
      • generator

        String generator
        The generator name. For example 'identity' or a defined generator name