Hi All,
to be quite honest, I'm very new with Hibernate.
I tried to create my own project according to some examples.
First I tried an example with
Code:
// Initialize
Configuration cfg = new Configuration();
cfg.Configure();
// Add class mappings to configuration
Assembly thisAssembly = typeof(Person).Assembly;
cfg.AddAssembly(thisAssembly);
// Create session factory from configuration object
m_SessionFactory = cfg.BuildSessionFactory();
IList<Person> m_Persons = new List<Person>();
This retrieves a list a 6 <Person>.
I found a different example (
http://www.codeproject.com/KB/architect ... AMPLE_APPS).
This one uses the ICriteria interface but does not return any <Person>.
The ISession is created successfully in both examples.
Anyone able to me out here?