3 Replies Latest reply on Oct 4, 2013 9:53 AM by Max Rydahl Andersen

    foreign key columns along with associations with hibernate reverse engineering

    vova surkov Newbie

      Hi,

       

      I want to generate foreign key columns along with associations ManyToOne for every association

      for example:


      1. @ManyToOne(fetch = FetchType.EAGER)

        @JoinColumn(name = "REF_DOCUMENTS_STATUS_FK", nullable = false)

        private RefDocumentsStatus refDocumentsStatus;

       

      and

       

      2. @Column(name = "DOCUMENTS_FK", unique = true, nullable = false, scale = 0 , updatable = false, insertable = false )

        private Long documentFk;

       

      now i can get either the first or the second variant (with help of MyReverseEngineeringStrategy excludeForeignKeyAsCollection)