I have this object
@Entity
public class Cat {
@Id String name;
Fur fur;
}
public class Fur {
String color1;
String color2;
}
How do I map it to:
Name Color1 Color2
+---------+------+------+
|SnowBall |red |green |
+---------+------+------+
|Snowball2|white |black |
+---------+------+------+
I only have JPA 2.1