Women in Technology

Hear us Roar



Article:
  Object-Relational Mapping with Apache Jakarta OJB
Subject:   less ideal
Date:   2003-01-09 13:01:28
From:   charlesc
Response to: hiding details of persistence layer

In fact, what I meant is to create a class like "QueryManager" that performs specific queries.


Without a standard query API, there's really no other way. You can create your own Criteria objects and translate into OJB Criteria API ... but the amount of work probably don't justify.


Having a QueryManager is less elegant but at least, it achieves encapsulation. :)