Skip to main content
summaryrefslogtreecommitdiffstats
blob: 7d279bbd6be54297618f96d4ab4fabbe8d5a4041 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
##included template. Generates the @ManyToOne annotation.
##Assumes that the context has a "role" object representing the generated AssociationRole
##
#set ($members = $customizer.appendAnnotation("", "cascade", $customizer.genCascades($role), false))
#if( $customizer.genFetch($role.referrerTable)!= "" && $customizer.genFetch($role.referrerTable)!= "FetchType.EAGER")
#set ($members = $customizer.appendAnnotation($members, "fetch", $customizer.genFetch($role.referrerTable), false))
#end
#if($members!="")
	@ManyToOne($members)
#else
    @ManyToOne
#end
#parse("join.vm")

Back to the top