下面列出了怎么用org.hibernate.annotations.IndexColumn的API类实例代码及写法,或者点击链接到github查看源代码。
/**
* Get the position entries for this object.
*/
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, orphanRemoval = true, mappedBy = "auftrag")
@IndexColumn(name = "number", base = 1)
public List<AuftragsPositionDO> getPositionen()
{
return this.positionen;
}
/**
* Get the payment schedule entries for this object.
*/
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, orphanRemoval = true, mappedBy = "auftrag")
@IndexColumn(name = "number", base = 1)
public List<PaymentScheduleDO> getPaymentSchedules()
{
return this.paymentSchedules;
}
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, mappedBy = "eingangsrechnung")
@IndexColumn(name = "number", base = 1)
@Override
public List<EingangsrechnungsPositionDO> getPositionen()
{
return this.positionen;
}
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, mappedBy = "rechnung")
@IndexColumn(name = "number", base = 1)
@Override
public List<RechnungsPositionDO> getPositionen()
{
return this.positionen;
}
/**
* Get the contact entries for this object.
*/
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, orphanRemoval = true, mappedBy = "contact")
@IndexColumn(name = "number", base = 1)
public Set<ContactEntryDO> getContactEntries()
{
return this.contactEntries;
}