org.hibernate.annotations
Annotation Type MapKey


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

@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
@Deprecated
public @interface MapKey

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

Author:
Emmanuel Bernard

Optional Element Summary
 Column[] columns
          Deprecated.  
 Class targetElement
          Deprecated. Represent the key class in a Map Only useful if the collection does not use generics
 Type type
          Deprecated. The optional map key type.
 

columns

public abstract Column[] columns
Deprecated. 
Default:
{}

targetElement

public abstract Class targetElement
Deprecated. 
Represent the key class in a Map Only useful if the collection does not use generics

Default:
void.class

type

public abstract Type type
Deprecated. 
The optional map key type. Guessed if default

Default:
@org.hibernate.annotations.Type(type="")


Copyright © 2001-2010 Red Hat, Inc. All Rights Reserved.