java data object domain object 领域对象 值对象的叫法的讨论

coder 2010-05-13 11:13:49
java中多层结构中有不同的对象
持久层对象, 接受用户值的对象。还有data object domain object 领域对象 值对象。有没有人能给去自己的叫法。来统一一下不同层次结构不同对象的称呼

我的理解data object domain object 都是领域对象。 都是在client端和service提供者之间的传输对象,他们应该是简单的属性值容器。

Data Objects 数据对象 持久层 实体对象。有明确的类型。用于持久化的对象。 用在持久层和service层
•Generic to the data structure being retrieved.
•Usually map to the database’s fields
•Defined in either the dataobj folder in your Service Control, or as a public static inner class in your Database Control.
•Implement java.util.Serializable


Domain Objects Domain Objects(域对象)用于接受用户的值 一般都是String类型,用于存储直接从用户获取的数据。用在web层
•Are data specific to the particular domain of the client
•Usually map to the client’s requirement of the data, which could be a subset and/or include massaged or
derived attributes of the data object.
•Defined in either the domainobj folder in your Service or Façade Control
•Usually an attribute in an Action Form Bean.
•实现 java.util.Serializable

...全文
185 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复

67,512

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧