Skip to content

Selecting values from embedded entities

gert-wijns edited this page Sep 13, 2014 · 2 revisions

Getting the values of embedded values within an entity requires no additional setup. Just chain the getters to get the value.

Product product = query.from(Product.class);
query.select(product.getProperties().
    getPlanning().getAlgorithm());

=> "select hobj1.properties.planning.algorithm from Product hobj1"
Clone this wiki locally