• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JPA Facade and DAO

 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm using Rome RSS to aggregate RSS feeds. For right now, I'm just focused on persisting the actual links, and ensuring there are no duplicates.

Am I using best practices with the DAO and Facade for the Links class? It's just a flat database at the moment, using JPA 2.1 with EclipseLink.

I think this is a facade?






and this is a DAO?




my biggest concern is the method in the DAO.
 
Piter Smith
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I modified the classes a bit:







they seem to function "correctly", in that there are no duplicates in the database...
reply
    Bookmark Topic Watch Topic
  • New Topic