1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5
<!-- Generated by javadoc (build 1.5.0_06) on Wed Aug 20 10:31:32 CEST 2008 -->
7
MapKey (Hibernate Annotations API Documentation)
10
<META NAME="keywords" CONTENT="org.hibernate.annotations.MapKey class">
12
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../jdstyle.css" TITLE="Style">
14
<SCRIPT type="text/javascript">
15
function windowTitle()
17
parent.document.title="MapKey (Hibernate Annotations API Documentation)";
25
<BODY BGCOLOR="white" onload="windowTitle();">
28
<!-- ========= START OF TOP NAVBAR ======= -->
29
<A NAME="navbar_top"><!-- --></A>
30
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
31
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
33
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
34
<A NAME="navbar_top_firstrow"><!-- --></A>
35
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
36
<TR ALIGN="center" VALIGN="top">
37
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
38
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
39
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
40
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/MapKey.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
41
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
42
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
43
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
44
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
48
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
54
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
55
<A HREF="../../../org/hibernate/annotations/ManyToAny.html" title="annotation in org.hibernate.annotations"><B>PREV CLASS</B></A>
56
<A HREF="../../../org/hibernate/annotations/MapKeyManyToMany.html" title="annotation in org.hibernate.annotations"><B>NEXT CLASS</B></A></FONT></TD>
57
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
58
<A HREF="../../../index.html?org/hibernate/annotations/MapKey.html" target="_top"><B>FRAMES</B></A>
59
<A HREF="MapKey.html" target="_top"><B>NO FRAMES</B></A>
60
<SCRIPT type="text/javascript">
63
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
68
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
75
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
76
SUMMARY: REQUIRED | <A HREF="#annotation_type_optional_element_summary">OPTIONAL</A></FONT></TD>
77
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
78
DETAIL: <A HREF="#annotation_type_element_detail">ELEMENT</A></FONT></TD>
81
<A NAME="skip-navbar_top"></A>
82
<!-- ========= END OF TOP NAVBAR ========= -->
85
<!-- ======== START OF CLASS DATA ======== -->
88
org.hibernate.annotations</FONT>
90
Annotation Type MapKey</H2>
93
<DT><PRE><FONT SIZE="-1"><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/annotation.Target.html" title="class or interface in java.lang">@Target</A>(value={METHOD,FIELD})
94
<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/annotation.Retention.html" title="class or interface in java.lang">@Retention</A>(value=RUNTIME)
95
</FONT>public @interface <B>MapKey</B></DL>
99
Define the map key columns as an explicit column holding the map key
100
This is completly different from <CODE>MapKey</CODE> which use an existing column
101
This annotation and <CODE>MapKey</CODE> are mutually exclusive
106
<DT><B>Author:</B></DT>
107
<DD>Emmanuel Bernard</DD>
112
<!-- =========== ANNOTATION TYPE OPTIONAL MEMBER SUMMARY =========== -->
114
<A NAME="annotation_type_optional_element_summary"><!-- --></A>
115
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
116
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
117
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
118
<B>Optional Element Summary</B></FONT></TH>
120
<TR BGCOLOR="white" CLASS="TableRowColor">
121
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
122
<CODE> javax.persistence.Column[]</CODE></FONT></TD>
123
<TD><CODE><B><A HREF="../../../org/hibernate/annotations/MapKey.html#columns()">columns</A></B></CODE>
126
</TD>
128
<TR BGCOLOR="white" CLASS="TableRowColor">
129
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
130
<CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A></CODE></FONT></TD>
131
<TD><CODE><B><A HREF="../../../org/hibernate/annotations/MapKey.html#targetElement()">targetElement</A></B></CODE>
134
Represent the key class in a Map
135
Only useful if the collection does not use generics</TD>
137
<TR BGCOLOR="white" CLASS="TableRowColor">
138
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
139
<CODE> <A HREF="../../../org/hibernate/annotations/Type.html" title="annotation in org.hibernate.annotations">Type</A></CODE></FONT></TD>
140
<TD><CODE><B><A HREF="../../../org/hibernate/annotations/MapKey.html#type()">type</A></B></CODE>
143
The optional map key type.</TD>
148
<A NAME="columns()"><!-- --></A><H3>
151
public abstract javax.persistence.Column[] <B>columns</B></PRE>
159
<DT><B>Default:</B><DD>{}</DD>
164
<A NAME="targetElement()"><!-- --></A><H3>
167
public abstract <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A> <B>targetElement</B></PRE>
169
<DD>Represent the key class in a Map
170
Only useful if the collection does not use generics
178
<DT><B>Default:</B><DD>void.class</DD>
183
<A NAME="type()"><!-- --></A><H3>
186
public abstract <A HREF="../../../org/hibernate/annotations/Type.html" title="annotation in org.hibernate.annotations">Type</A> <B>type</B></PRE>
188
<DD>The optional map key type. Guessed if default
196
<DT><B>Default:</B><DD>@org.hibernate.annotations.Type(type="")</DD>
199
<!-- ========= END OF CLASS DATA ========= -->
203
<!-- ======= START OF BOTTOM NAVBAR ====== -->
204
<A NAME="navbar_bottom"><!-- --></A>
205
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
206
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
208
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
209
<A NAME="navbar_bottom_firstrow"><!-- --></A>
210
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
211
<TR ALIGN="center" VALIGN="top">
212
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
213
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
214
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
215
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/MapKey.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
216
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
217
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
218
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
219
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
223
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
229
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
230
<A HREF="../../../org/hibernate/annotations/ManyToAny.html" title="annotation in org.hibernate.annotations"><B>PREV CLASS</B></A>
231
<A HREF="../../../org/hibernate/annotations/MapKeyManyToMany.html" title="annotation in org.hibernate.annotations"><B>NEXT CLASS</B></A></FONT></TD>
232
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
233
<A HREF="../../../index.html?org/hibernate/annotations/MapKey.html" target="_top"><B>FRAMES</B></A>
234
<A HREF="MapKey.html" target="_top"><B>NO FRAMES</B></A>
235
<SCRIPT type="text/javascript">
238
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
243
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
250
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
251
SUMMARY: REQUIRED | <A HREF="#annotation_type_optional_element_summary">OPTIONAL</A></FONT></TD>
252
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
253
DETAIL: <A HREF="#annotation_type_element_detail">ELEMENT</A></FONT></TD>
256
<A NAME="skip-navbar_bottom"></A>
257
<!-- ======== END OF BOTTOM NAVBAR ======= -->