1 / 6

Page1

Presentation Tier. Page1. Page1. Page1. TO1. TO2. TO3. Business Tier. E1. E2. createQuery ( SimplePhotoTO . class , " p . name LIKE '2011'"). TOMan. JPA/ Hibernate Query Engine. Query Engine Selector. Some Custom Filter Query Engine. photoFilter = new PhotoFilter ();

elle
Download Presentation

Page1

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. PresentationTier Page1 Page1 Page1 TO1 TO2 TO3 Business Tier E1 E2

  2. createQuery(SimplePhotoTO.class, "p.name LIKE '2011'") TOMan JPA/Hibernate QueryEngine Query Engine Selector SomeCustom FilterQueryEngine photoFilter = newPhotoFilter(); // ... photoFilterinitialization createQuery(SimplePhotoTO.class, photoFilter) TOMan JPA/Hibernate QueryEngine Query Engine Selector SomeCustom FilterQueryEngine

  3. PresentationTier Page1 Page1 Page1 TO1 TO2 TO3 Business Tier E1 E2

  4. @TO(id = "p.id=:photoId", read = "select p.id, p.name, p.description, p.album.name from Photo p", write = "update Photo p set p.name=:photoName, p.description=:photoDescription") • BasicPhotoAlbumTO • <<class>> • @Index(0) photoId • @Index(1) photoName • @Index(2) photoDescription • @Index(3) albumName :BasicPhoto AlbumTO <<instance>> find(BasicPhotoAlbumTO.class, 120) TOMan select p.id, p.name, p.description, p.album.name from Photo p where p.id=:photoId Entity Manager

  5. @TO(id = "p.id=:photoId", read = "select p.id, p.name, p.description, p.album.name from Photo p", write = "update Photo p set p.name=:photoName, p.description=:photoDescription") :BasicPhoto AlbumTO <<instance>> • BasicPhotoAlbumTO • <<class>> • @Index(0) photoId • @Index(1) photoName • @Index(2) photoDescription • @Index(3) albumName update(photoAlbumTO) TOMan update Photo p set p.name=:photoName, p.description=:photoDescription" where p.id=:photoId Entity Manager

  6. @TO(id = "p.id=:photoId", read = "select p.id, p.name, p.description, p.album.name from Photo p", write = "update Photo p set p.name=:photoName, p.description=:photoDescription") • BasicPhotoAlbumTO • <<class>> • @Index(0) photoId • @Index(1) photoName • @Index(2) photoDescription • @Index(3) albumName :BasicPhoto AlbumTO <<instance>> :BasicPhoto AlbumTO <<instance>> :BasicPhoto AlbumTO <<instance>> createQuery(BasicPhotoAlbumTO.class, "p.album.name='holiday2010'"); TOMan createQuery("selectp.id, p.name, p.description, p.album.name from Photo p where p.album.name='holiday2010'"); Entity Manager

More Related