Hibernate improvements. 1:n-mono relations support

Now the hibernate test's main will execute every query without any
problem (the great idea of making a factory stateful broke everithing).

The hibernate generator will generate the 1:n-mono associations, editing
(recreating) and improving the configuration files, will edit the beans
adding set's support.

Various fixes.