Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JPA Facade and DAO

 
Piter Smith
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • 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
  • 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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic