I´m using PostGres 8.3 and have NHibernate working fine with database... I´m creating a Conventions file and I´m having problem to configure the Primary key sequence... All my tables have a primary key called ID, so I did that :
...
mapper.BeforeMapClass += (modelInspector, type, classCustomizer) => {
classCustomizer.Id(c => c.Column("ID"));
classCustomizer.Id(c => c.Generator(Generators.Sequence));
};
When I try to Save a instance, I got that error:
ERROR: 42P01: relation "hibernate_sequence" does not exist
How Can I create a convention to that?
Thanks