|
@Where(clause = "deleted = 'false'") public class StationPoint extends Auditable<Long> { .... }
/** The station points. */ @OneToMany(targetEntity = com.vahana.entity.StationPoint.class, mappedBy = "station", cascade = CascadeType.MERGE) @Where(clause = "deleted = 'false'") private Set<StationPoint> stationPoints = new HashSet<StationPoint>();
In the above code I have annotated @where in Station Point Class and also in the collection mapping. Is there anyway it can detect from entity class in collection mapping?
|