Hello, I have two classes -
Code:
@Entity
@Inheritance(strategy = InheritanceType.JOINED)
public class Percentile {
@TableGenerator(name="GENERATOR",
...
)
@Id
@GeneratedValue(strategy = GenerationType.TABLE, generator="GENERATOR")
private Long id;
@Column
private Double percentileKey;
@Column
private Double percentileValue;
@Entity
public class TimeLatencyPercentile extends Percentile {
@ManyToOne
@JoinColumn(name="statistics_id")
private TimeInvocationStatistics timeInvocationStatistics;
I see that AbstractBatcher saves entities(TimeLatencyPercentile) one by one(batch size=1) in hibernate logs(DEBUG level).
But if I use InheritanceType.TABLE_PER_CLASS batching works well.
How I can enable batching with InheritanceType.JOINED strategy?