That's odd, since I get exactly that composite primary key behaviour
on both SQLite and MsSql dialects. E.g.
create table TableA_TableB (
TableA_id UNIQUEIDENTIFIER not null,
TableB_id UNIQUEIDENTIFIER not null,
primary key (TableA_id, TableB_id)
)
Note that it really isn't Fluent NHibernate which generate the DDL for
SQLite. It's done by the SchemaExport class together with the database
Dialect.
I'm curious about how you've mapped your many-to-many. Are you using a
HasManyToMany on both Proudct and Store?