what is the best code generator for NHibernate?
See the "Helpful Tools For NHibernate" section on this NHibernate page and choose one based on what you're looking for. Do you want free? Commercial? Do you want Visual Studio integration?
All of the listed code generators there are good, there is no general best without knowing what you need.