Hi all,
My google-fu is failing me in this. I'm doing a small database app which reads some data from a file along with some meta data that I currently store in a Map in my entity. I'm getting fed up with it always being displayed in a random order.
So can I use a LinkedHashMap or @OrderColumn with Maps somehow to preserve insertion order?
@Entity
public class MooData
{
@OrderColumn
@ElementCollection
private List<BigDecimal> data;
@ElementCollection
private Map<String, String> properties;
}
:)