@Entity(name = "Task") @BatchSize(size = 5) public static class Task { @Id private long id; public Task() { } }
public void setBatchSize(BatchSize sizeAnn) { if ( sizeAnn != null ) { batchSize = sizeAnn.size(); } else { batchSize = -1; } }
@BatchSize( size = 32 ) public class BatchLoadableEntity { private Integer id;
public void setBatchSize(BatchSize batchSize) { this.batchSize = batchSize == null ? -1 : batchSize.size(); }
@Entity(name = "SpecialPerson") public static class SpecialPerson extends Person { @Column(name = "special") private String special; @OneToMany(orphanRemoval = true, cascade = { CascadeType.PERSIST, CascadeType.REMOVE }) @JoinColumn(name = "PERSONID", referencedColumnName = "ID", nullable = false, updatable = false) @BatchSize(size = 100) private Set<Address> addresses = new HashSet<Address>(); public void addAddress(Address address) { this.addresses.add( address ); } }
public void setBatchSize(BatchSize sizeAnn) { if ( sizeAnn != null ) { batchSize = sizeAnn.size(); } else { batchSize = -1; } }
@Entity @IdClass(BId.class) @BatchSize(size = 1000) public class B {
public void setBatchSize(BatchSize batchSize) { this.batchSize = batchSize == null ? -1 : batchSize.size(); }
@Column(name="FIELD_VALUE") @CollectionTable(name="BLC_OFFER_INFO_FIELDS", joinColumns=@JoinColumn(name="OFFER_INFO_FIELDS_ID")) @BatchSize(size = 50) protected Map<String, String> fieldValues = new HashMap<String, String>();
public void setBatchSize(BatchSize sizeAnn) { if ( sizeAnn != null ) { batchSize = sizeAnn.size(); } else { batchSize = -1; } }
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region="blCMSElements") @OrderBy("fieldOrder") @BatchSize(size = 20) protected List<FieldEnumerationItem> enumerationItems;
public void setBatchSize(BatchSize sizeAnn) { if ( sizeAnn != null ) { batchSize = sizeAnn.size(); } else { batchSize = -1; } }
@Entity(name = "Person") @Access(AccessType.FIELD) @Table(name = "PERSON") @Inheritance(strategy = InheritanceType.TABLE_PER_CLASS) @DiscriminatorColumn(name = "CLASSINDICATOR", discriminatorType = DiscriminatorType.INTEGER) @DiscriminatorValue("1") public static class Person { @Id @Column(name = "ID", nullable = false) @SequenceGenerator(name = "ID_2", sequenceName = "PERSON_SEQ") @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "ID_2") private Long id; @OneToMany(orphanRemoval = true, cascade = { CascadeType.PERSIST, CascadeType.REMOVE }) @JoinColumn(name = "PERSONID", referencedColumnName = "ID", nullable = false, updatable = false) @BatchSize(size = 100) private Set<Address> addresses = new HashSet<Address>(); public void addAddress(Address address) { this.addresses.add( address ); } }
public void setBatchSize(BatchSize sizeAnn) { if ( sizeAnn != null ) { batchSize = sizeAnn.size(); } else { batchSize = -1; } }
@Entity @Table(name = "EmployeeGroup") @BatchSize(size = 1000) private static class EmployeeGroup { @Id
public void setBatchSize(BatchSize batchSize) { this.batchSize = batchSize == null ? -1 : batchSize.size(); }
@Entity(name = "Person") @Access(AccessType.FIELD) @Table(name = "PERSON") @Inheritance(strategy = InheritanceType.JOINED) @DiscriminatorColumn(name = "CLASSINDICATOR", discriminatorType = DiscriminatorType.INTEGER) @DiscriminatorValue("1") public static class Person { @Id @Column(name = "ID", nullable = false) @SequenceGenerator(name = "ID_2", sequenceName = "PERSON_SEQ") @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "ID_2") private Long id; @OneToMany(orphanRemoval = true, cascade = { CascadeType.PERSIST, CascadeType.REMOVE }) @JoinColumn(name = "PERSONID", referencedColumnName = "ID", nullable = false, updatable = false) @BatchSize(size = 100) private Set<Address> addresses = new HashSet<Address>(); public void addAddress(Address address) { this.addresses.add( address ); } }
public void setBatchSize(BatchSize batchSize) { this.batchSize = batchSize == null ? -1 : batchSize.size(); }
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region="blCMSElements") @OrderBy("groupOrder") @BatchSize(size = 20) protected List<StructuredContentFieldGroupXref> fieldGroupXrefs = new ArrayList<StructuredContentFieldGroupXref>();
public void setBatchSize(BatchSize batchSize) { this.batchSize = batchSize == null ? -1 : batchSize.size(); }