Skip to content

Instantly share code, notes, and snippets.

@andyj
Created November 22, 2011 22:59
Show Gist options
  • Save andyj/1387327 to your computer and use it in GitHub Desktop.
Save andyj/1387327 to your computer and use it in GitHub Desktop.
Trying to create a model with 2 fields as a primary key
component persistent="true" table="tableWithTwoIds" alias="tableWithTwoIds"
{
property name="id" ormtype="int" generated="never" fieldtype="id" index="true";
property name="typeofaddress" ormtype="int" fieldtype="id" index="true" ;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment