Hibernate-tools-maven-plugin does not strongly type foreign sets

Foreign key-derived sets are not strongly typed as they should when generating entity classes with the Maven plugin.

I have noticed a difference between the files generated

  • with hibernate-tools-maven-plugin
  • with, eg., the JPA Tools of Eclipse.

Say we have the Northwind database, a Customers entity is generated:

@Entity
@Table(name="customers"
    ,schema="NORTHWIND"
    ,catalog="NORTHWIND"
)
public class Customers  implements java.io.Serializable {

     private Integer id;
     // [...]
     private Set<Orders> orderses = new HashSet<Orders>(0);

Notice the orderses member. It is not strongly-typed, as it should, when entity generation is done through hibernate-tools-maven-plugin.

It is strongly typed when entity generation is performed with JPA Tools:

private Set<Orders> orderses = new HashSet<Orders>(0);

Will this be fixed in the 6.0.0 release?
BTW how to try the 6.0.0 release of the Maven plugin?

Sorry, the hibernate-tools-maven-plugin generates the following code:

private Set orderses = new HashSet(0);

which is not strongly typed.