title: Hibernate reverse engineering - custom constructor
body: <p>I came across a problem in a hibernate reverse engineering of the DB. </p>
  
  <p>I have got a table <code>ADDRESS</code> with many columns (as you would expect from address), but not many of them are actually constrained with <code>NOT NULL</code>.</p>
  
  <p>For a long time, reveng generated class so there existed constructor like this:</p>
  
  <pre><code>Address(AddressId, Account, Date, String, String);
  </code></pre>
  
  <p>Currently, it only generates empty constructor, full constructor and single one parameter constructor </p>
  
  <pre><code>public Address(AddressId id) {
      this.id = id;
  }
  </code></pre>
  
  <p>I would need to convince hibernate to create the constructor above with 5 params. Is it possible somehow? Those 5 params are those that are declared <code>NOT NULL</code> in DB. </p>
  
  <p>I am using Java 8 and I am connecting to Oracle DB. <code>AddressId</code> is generated class based on composite Primary Key of the <code>Address</code>. <code>Account</code> is another class in DB and <code>Address</code> has a Foreign Key that links to <code>Account</code> PK. </p>