hardcodet wrote:
3.1 Final - TRIAL
What appears on "Released On" field on Help-About? The error you describe shouldn't happen, please download the latest installer and generate code again.
hardcodet wrote:
...and also extended it with a partial configuration method that allows the user to add some further configs.
To add additional settings to the SessionManager or to other mappings, see NH Additional Output Settings.
Also, if you want to extend the mappings for some mapping files, please see Extending the generated mapping files. For fluent you can add a partial class of the mapping file and implement the AdditionalMappingInfo method to add your additional mapping info.
hardcodet wrote:
Furthermore, it would be nice to have support for the built-in proxy instead of Castle, LinFu and Spring (copy of the SessionManager I ended up with below).
You can. Go to Project->Properties->Output Settings->BytecodeProxyFactory then set the proxy you want to use. This is described in Available Output Settings:
BytecodeProxyFactory. The bytecode proxy factory to use for the hibernate.cfg.xml file. The chosen proxy factory has to be referenced in the 'Persistence' VS.NET project which contains the hibernate.cfg.xml file generated.
Default value: LinFu
hardcodet wrote:
It would be also nice if I could customize the cascading of updates. With the "Cascade All" being generated, I ended up with updates of an attached Employee entity just because I was updating and entity that was related to the employee.
Check the link I provided above (output settings) and find for "Cascade", you can set those settings so the generate code looks just like you want.
In case you don't find a setting for what you want, you can always Extend the generated mapping files.
So, normally you don't need to modify the built-in template files, as a matter of fact it's not recommended because you have to maintain your changes between updates. Almost every useful setting can be set through output setting values or by extending the generated files.
Now, if you need a setting in the Designer to generate a custom stuff and it isn't available you can write your own settings and generate your own custom templates. In general you won't reach this far, but just in case, you can take a look at the SDK documentation.