Top Description Methods
org.hibernate.annotations

public @Interface MapKey

extends Annotation
Annotations
@Target:METHOD, FIELD
@Retention:RUNTIME
@Deprecated
Imports
java.lang.annotation.Target, .Retention, javax.persistence.Column

Deprecated

Use javax.persistence.MapKeyColumn This is the default behavior for Map properties marked as @OneToMany, @ManyToMany or @ElementCollection

Define the map key columns as an explicit column holding the map key This is completely different from javax.persistence.MapKey which use an existing column This annotation and javax.persistence.MapKey are mutually exclusive
Author
Emmanuel Bernard

Method Summary

Modifier and TypeMethod and Description
public Column[]
public Class<T>
targetElement()

Represent the key class in a Map Only useful if the collection does not use generics

public Type
type()

The optional map key type.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

columnsback to summary
public Column[] columns()
targetElementback to summary
public Class<T> targetElement()

Represent the key class in a Map Only useful if the collection does not use generics

typeback to summary
public Type type()

The optional map key type. Guessed if default