1 package org.paneris.bibliomania; 2 3 import org.paneris.bibliomania.generated.BookshopBase; 4 import org.paneris.bibliomania.metasearch.BookStockingFactory; 5 import org.paneris.bibliomania.metasearch.BookshopBackend; 6 7 public class Bookshop extends BookshopBase implements BookStockingFactory { 8 9 public BibliomaniaDatabase getBibliomaniaDatabase () { 10 return (BibliomaniaDatabase)getDatabase(); 11 } 12 13 public Bookshop() {} 14 15 public BookshopBackend backend; 16 17 public BookStocking newStocking() { 18 BookStocking stocking = 19 (BookStocking)getBibliomaniaDatabase().getBookStockingTable(). 20 newPersistent(); 21 stocking.setShop_unsafe(troid()); 22 return stocking; 23 } 24 }