database schema name on nhibernate hbm

Posts   
 
    
ivargas
User
Posts: 9
Joined: 07-Dec-2010
# Posted on: 07-Dec-2010 17:15:53   

Hi,

Is there any way to avoid the schema name on HBM files?

I developing a commercial application using Oracle. In my database we use a schema owner (e.g. "devel") but my customers have many different schema names. So i want the generated mappings not have the schema name.

I customized the templates and lpt files, one of these (entityHbmMapping.lpt) uses SD_NHibernateGeneralUtils.ProduceTargetFullName to return "SchemaName.TableName"

Any comments will be appreciated.

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 08-Dec-2010 06:00:02   

Templates don't check whether it's necessary to emit the schema (i.e. for oracle with just 1 schema in the project, it's not necessary), so your template modification is ok for now. This is something should be added in v3.1.

David Elizondo | LLBLGen Support Team