Skip to content

Commit

Permalink
HHH-5940 Add tests for @MapKeyJoinColumns
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelbernard committed Mar 14, 2011
1 parent 72ef0fd commit 9a2494b
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -17,6 +17,7 @@
import javax.persistence.MapKeyColumn;
import javax.persistence.MapKeyEnumerated;
import javax.persistence.MapKeyJoinColumn;
import javax.persistence.MapKeyJoinColumns;
import javax.persistence.MapKeyTemporal;
import javax.persistence.TemporalType;

Expand Down Expand Up @@ -59,7 +60,7 @@ public static enum Level {

@CollectionOfElements //TODO migrate to @ElementCollection ; @MapKeyManyToMany ??
@Column(name="composition_rate")
@MapKeyJoinColumn(name="gas_id" )
@MapKeyJoinColumns( { @MapKeyJoinColumn(name="gas_id" ) } ) //use @MapKeyJoinColumns explicitly for tests
@JoinTable(name = "Composition", joinColumns = @JoinColumn(name = "atmosphere_id"))
public Map<Gas, Double> composition = new HashMap<Gas, Double>();

Expand Down

0 comments on commit 9a2494b

Please sign in to comment.