Hi, i have this question for a project
i have an object which has associations
Quote:
<hibernate-mapping>
<class name="nikos.Category" table="category">
<id name="id" type="int" column="id" unsaved-value="0">
<generator class="identity"/>
</id>
<property name="name">
<column name="name" sql-type="varchar(200)" not-null="true"/>
</property>
<property name="description">
<column name="description" sql-type="mediumtext" not-null="true"/>
</property>
<property name="published">
<column name="published" sql-type="char(1)" not-null="true"/>
</property>
<property name="pic">
<column name="pic" sql-type="int(1)" not-null="true"/>
</property>
<bag name="books" table="book" lazy="false" inverse="true"
cascade="all">
<key column="category"></key>
<one-to-many class="nikos.Book"/>
</bag>
</class>
</hibernate-mapping>
How can i create pagination for the association ie the Category class has a getBooks() method which returns the books
how can i paginate (for example to have getBooks().start(xx).length(yy)) and how do i denote it in the xml configuration??
i appreciate any news / ideas/ pointers..