Skip to content

Instantly share code, notes, and snippets.

@bewebste
Created June 4, 2011 19:14
Show Gist options
  • Save bewebste/1008225 to your computer and use it in GitHub Desktop.
Save bewebste/1008225 to your computer and use it in GitHub Desktop.
MOGenerator diff template
{
name = <$name$>,
managedObjectClassName = <$managedObjectClassName$>,
renamingIdentifier = <$renamingIdentifier$>,
isAbstract = <$isAbstract$>,
userInfo = <$userInfo$>,
relationships = (
<$foreach Relationship noninheritedRelationships do$>
{
name = <$Relationship.name$>,
isIndexed = <$Relationship.isIndexed$>,
isTransient = <$Relationship.isTransient$>,
isOptional = <$Relationship.isOptional$>,
userInfo = <$Relationship.userInfo$>,
destinationEntity = <$Relationship.destinationEntity.name$>,
inverseRelationship = <$Relationship.inverseRelationship.name$>,
deleteRule = <$Relationship.deleteRule$>,
maxCount = <$Relationship.maxCount$>,
minCount = <$Relationship.minCount$>,
isToMany = <$Relationship.isToMany$>
}
<$endforeach do$>
)
attributes = (
<$foreach Attribute noninheritedAttributes do$>
{
name = <$Attribute.name$>,
isIndexed = <$Attribute.isIndexed$>,
isTransient = <$Attribute.isTransient$>,
isOptional = <$Attribute.isOptional$>,
userInfo = <$Attribute.userInfo$>,
attributeType = <$Attribute.attributeType$>,
attributeValueClassName = <$Attribute.attributeValueClassName$>,
defaultValue = <$Attribute.defaultValue$>,
valueTransformerName = <$Attribute.valueTransformerName$>
}
<$end>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment