@Entity
public class foo{
@Id
private long id;
@Embedded
private Bar bar;
}
@Embeddable
public class Bar {
@???
private List<Double> locations;
}
i am using hibernate Ogm and jpa and mongodb, when i persist Foo object then List locations are not save in mongodb
currently i have annotated this filed like this
@ElementCollection(targetClass=Double.class,fetch=FetchType.EAGER)
@Column(name="locations")
private List<Double> locations;
but this is not working for me.so what i do to save this list