• Post Reply Bookmark Topic Watch Topic
  • New Topic

findByPrimaryKey

 
Baiju Varugese
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

i have one requirement i need to scaledown the ejb's used in the project POJO's, in that i need to know how we can implement the findByprimaryKey method in the home interface
 
Greg Charles
Sheriff
Posts: 3010
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I understand right, you want to convert some of your CMPs to POJOs. We do the same thing using DAO/DTO patterns. The DAOs have JDBC code written into them for the findByPrimary and other finders as well as insert, update, and delete methods. The methods all use DTOs as parameters or return values. We use a product called Firestorm to generate all this code from the DB schema. Many other comparable products exist.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!