map « Batch « JPA Q&A





1. NHibernate, many-to-many and HQL batch delete    stackoverflow.com

I have 2 entities with many-to-many relationship defined on them.

<set name="TreasuryCodes" table="ServiceProviderAccountTreasuryCode" lazy="true" cascade="all">
  <key column="ServiceProviderAccountId" />
  <many-to-many column="TreasuryCodeId" class="TreasuryCode" />
</set>

<set name="ServiceProviderAccounts" table="ServiceProviderAccountTreasuryCode" lazy="true" inverse="true" cascade="all">
  <key ...

2. Combining Extra Lazy Map With Batch Fetching    forum.hibernate.org

@Entity class Fish { @CollectionOfElements() @LazyCollection(LazyCollectionOption.EXTRA) @JoinColumn(name = "fish_id") @MapKey(columns = @Column(name = "date")) public Map getMeals() { return m_meals; } } @Entity class Meal { }

3. hibernate.cfg.xml batch mapping    forum.hibernate.org

4. re: hibernate mapping with batch-size and lazy    forum.hibernate.org

public TenderOffer getTheOffer() { Set theOffers = getTenderOffers(); Iterator it = theOffers.iterator(); while (it.hasNext()) { TenderOffer to = (TenderOffer) it.next(); ...