I've attempted to fix my issue by modifying the mapping file like so:
Code:
<class name="Data.Entities.Security.Employee,Class" table="Security.dbo.Employee" lazy="true">
<id name="UserName" type="string">
<column name="Username" sql-type="varchar(30) collate database_default" unique="true" />
<generator class="native"/>
</id>
.....
Unfortunately when the join between the two tables occur using the Username as the Key the collate database_default isn't being shown in the resultant SQL...
This is the log section of the SQL Join that Hibernate spits out:
Code:
left outer join Security.dbo.Employee employee3_ on project0_.ProjectManagerUsername=employee3_.Username
This is what I need it to say to work:
'
Code:
left outer join Security.dbo.Employee employee3_ on project0_.ProjectManagerUsername=employee3_.Username COLLATE database_default
I'll keep playing....