本文对在ORM中对象间的关联及其映射到关系数据库表时的默认事务需要做一个整理。对于对象的基本关联以及对象关联怎样映射到关系数据库的表结构,请参见我之前的两篇文章:[1] UML Model/Relation Db Table Mapping Design For LiteMda - Draft[2] O/R Mapping中对象关系映射解决方案汇总To practise my english wr... Read More
posted @ 2005-07-23 12:37 Teddy's Knowledge Base Views(1939) Comments(17) Diggs(0) Edit
对于一个ORM方案时,为了提供用户对具体映射方案的细颗粒度的控制的可能,特别对于企业级应用,应该是用户选择是否使用该产品比较重要的因素之一,需要尽可能多的实现各种可选的常用映射方案,本文的目的就是对O/R Mapping中对象关系映射方面的解决方案作一个汇总,当设计或评价一个ORM方案的时候,也可以相应的以此作为参考。 1、 继承 说明: 对于比较完善的继承关系一般会有如下共有特点:首先,只允... Read More
posted @ 2005-07-21 13:42 Teddy's Knowledge Base Views(11237) Comments(25) Diggs(0) Edit
In this article, I talk about the "UML Model/Relation Db Table Mapping Design" for LiteMda. What is "UML Model/Relation Db Table Mapping Design"? -To make the persistation of Domain Objects being transparent to Db Tables, it needs to find a way, as natually as possible, to represent all the kinds of associations among class objects. What kinds of associations need to be considered? -Generalization, Association, Directed Association, Self Association, Aggregation and Com Read More
posted @ 2005-07-18 11:44 Teddy's Knowledge Base Views(1728) Comments(7) Diggs(0) Edit
基于昨天双鱼座和ccBoy的建议,对LiteMda的设计作了部分修改,主要改变的部分如下:1、不再从Tables生成,而是先从XMI生成一个Xml Profile For Model,再由该Profile生成Tables及其他配置文件和代码,生成Tables方面计划采用Provider模式,以使数据库类型对程序员透明,这样还有几点好处,一是解除代码生成和XMI的耦合,二是,如果有部分元数据不能直... Read More
posted @ 2005-07-12 10:57 Teddy's Knowledge Base Views(1596) Comments(5) Diggs(0) Edit
关于该方案的基本设计思路是这样的:首先,代码生成的基础还是数据库表,但是,提供一个从XMI生成Tables的工具,以支持从UML类图到对应Tables的自动生成,并支持以自定义类型作为其他类的属性的数据类型;接着,基于这些Tables,可以生成映射到DomainObjects及为其增加持久化支持的Xml Profile,Xml Profile For Domain Objects基本和其他的o/... Read More
posted @ 2005-07-11 13:51 Teddy's Knowledge Base Views(1692) Comments(10) Diggs(0) Edit
昨天,为AjaxHelper增加了基本的JSRS支持,今天再次扩展其JSRS支持,新函数 RSUpdater(remoteScriptPath, ajaxTemplate, output, params, onComplete) 提供了类似原有Updater函数的调用接口,该函数允许在当前页面通过js调用一个远程服务器的应用模块,也就是说,相当于支持跨域、跨站点访问远程站点上的UserContro... Read More
posted @ 2005-07-03 21:08 Teddy's Knowledge Base Views(2677) Comments(6) Diggs(0) Edit
这次为AjaxHelper0.5加入JSRS(JavaScript Remote Scripting)支持,其实这东西出现也很久了,功能非常强,甚至支持跨域的远程调用,真奇怪为何竟没有像Ajax一样形成那么大的效应~~当然他的封装和调用,某种程度来讲没有对xmlhttp的封装和调用来得容易,不过语法却更简单。 说白了,所谓JSRS就是,通过js为当前页面动态的添加script块,其src指向远程服... Read More
posted @ 2005-07-02 09:51 Teddy's Knowledge Base Views(3294) Comments(13) Diggs(0) Edit
第一篇福建的,第二篇广东的,看着真得都挺感人。想看上海卷的,可惜还没出来~~-------------------------------------------------------------------------------------------- 八-十八-二十八 “啪!”一巴掌猛地打在屁股上。我大哭起来。“老师怎么教你的,小草是绿的,太阳是红的,看看你,怎么画的!”我透过... Read More
posted @ 2005-07-01 13:26 Teddy's Knowledge Base Views(1574) Comments(1) Diggs(1) Edit
http://teddy.cn/AjaxHelperExample/http://teddy.cn/AjaxHelperExample2/http://teddy.cn/AjaxPhoto/ Read More
posted @ 2005-06-29 14:30 Teddy's Knowledge Base Views(2396) Comments(4) Diggs(0) Edit
Perspective功能特点如下: User login and control of what can be edited. Support for transparent logins through Windows Integrated Authentication . Full version history of pages and their attachments so it ... Read More
posted @ 2005-06-29 12:03 Teddy's Knowledge Base Views(4579) Comments(17) Diggs(0) Edit