更新 llms-full.txt
This commit is contained in:
@@ -185,7 +185,7 @@ DateTime endTime; //会议结束时间
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
这种“正向替换”和“反向注入”可以按需递归调用,去将多个互相之间有外键关系的对象组装成最终对象。例如,还有另外一张表MeetingAgenda到Meeting有n:1的外键,和另外一张表AgendaAttendance到MeetingAgenda有n:1外键。那么如果我要去组装以Meeting开始,包含MeetingRoom, MeetingAgenda, AgendaAttendance的组装对象,首先发现MeetingRoom是可以正向扩展到Meeting的,反向注入MeetingAgenda,而AgendaAttendance需要先反向注入到MeetingAgenda中。
|
这种“正向替换”和“反向注入”可以按需递归调用,去将多个互相之间有外键关系的对象组装成最终对象。例如,还有另外一张表MeetingAgenda到Meeting有n:1的外键,和另外一张表AgendaAttendance到MeetingAgenda有n:1外键。那么如果我要去组装以Meeting开始,包含MeetingRoom, MeetingAgenda, AgendaAttendance的组装对象,首先发现MeetingRoom是可以正向扩展到Meeting的,反向注入MeetingAgenda,而AgendaAttendance需要先反向注入到MeetingAgenda中。
|
||||||
- **TOCO中json结构描述:** 在TOCO中,DTO使用一个json结构表示,该结构可用于理解DTO的含义,或作为创建、更新DTO工具的参数。部分字段的含义为:dto的uuid为唯一标识,如果需要创建DTO,则设置为null;如果需要复用,则填入其uuid。expandList为正向替换,reverseExpandList为反向注入,customFieldList为自定义字段。expandListList中,entityFieldName为正向替换对应的本表外键字段的名字,dtoFieldName为正向替换之后给该字段的起的新名字;reverseExpandList中,entityFieldName为反向注入对应的他表外键字段的名字,dtoFieldName为反向注入之后给该字段的起的新名字;customFieldList中,uuid为自定义字段特有的UUID,创建DTO的时候不需要填入,因为TOCO会自动为其分配UUID,更新DTO的时候需要传入,用于定位需要更新的自定义字段;typeUuid参数对应类结构的UUID,当type为Enum、Eo时包含该字段;innerType为List内部类型,当type为List时包含该字段;innerUuid为List内部类结构的UUID,当type为List且innerType=Enum、Eo时包含该字段。示例如下:
|
- **TOCO中json结构描述:** 在TOCO中,DTO使用一个json结构表示,该结构可用于理解DTO的含义,或作为创建、更新DTO工具的参数。部分字段的含义为:dto的uuid为唯一标识,如果需要创建DTO,则设置为null;如果需要复用,则填入其uuid。expandList为正向替换,reverseExpandList为反向注入,customFieldList为自定义字段。expandListList中,foreignKeyInThisEntity为正向替换对应的本表外键字段的名字,dtoFieldName为正向替换之后给该字段的起的新名字;reverseExpandList中,foreignKeyInOtherEntity为反向注入对应的他表外键字段的名字,dtoFieldName为反向注入之后给该字段的起的新名字;customFieldList中,uuid为自定义字段特有的UUID,创建DTO的时候不需要填入,因为TOCO会自动为其分配UUID,更新DTO的时候需要传入,用于定位需要更新的自定义字段;typeUuid参数对应类结构的UUID,当type为Enum、Eo时包含该字段;innerType为List内部类型,当type为List时包含该字段;innerUuid为List内部类结构的UUID,当type为List且innerType=Enum、Eo时包含该字段。示例如下:
|
||||||
- meeting_with_room_dto
|
- meeting_with_room_dto
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
@@ -196,7 +196,7 @@ DateTime endTime; //会议结束时间
|
|||||||
"fromEntity": "meeting",
|
"fromEntity": "meeting",
|
||||||
"expandList": [
|
"expandList": [
|
||||||
{
|
{
|
||||||
"entityFieldName": "room_id",
|
"foreignKeyInThisEntity": "room_id",
|
||||||
"dtoFieldName": "meeting_room",
|
"dtoFieldName": "meeting_room",
|
||||||
"dto": {
|
"dto": {
|
||||||
"uuid": "d05c7b3d-1c92-45a1-2113-a01b245813c1",
|
"uuid": "d05c7b3d-1c92-45a1-2113-a01b245813c1",
|
||||||
@@ -228,7 +228,7 @@ DateTime endTime; //会议结束时间
|
|||||||
"fromEntity": "meeting",
|
"fromEntity": "meeting",
|
||||||
"reverseExpandList": [
|
"reverseExpandList": [
|
||||||
{
|
{
|
||||||
"entityFieldName": "room_id",
|
"foreignKeyInOtherEntity": "room_id",
|
||||||
"dto": {
|
"dto": {
|
||||||
"uuid": "ffeec02d-2a32-1531-1ce1-b9bfc1993765",
|
"uuid": "ffeec02d-2a32-1531-1ce1-b9bfc1993765",
|
||||||
"name": "meeting_base_dto",
|
"name": "meeting_base_dto",
|
||||||
@@ -332,7 +332,7 @@ DateTime endTime; //会议结束时间
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
- **TOCO中json结构描述:** 在TOCO中,VO使用一个json结构表示,该结构可用于理解VO的含义,或作为创建、更新VO工具的参数。部分字段的含义为:expandList为正向替换,reverseExpandList为反向注入,extendFieldList为来自派生源DTO的字段,customFieldList为自定义字段。expandListList中,entityFieldName为正向替换对应的本表外键字段的名字,voFieldName为正向替换之后给该字段的起的新名字;reverseExpandList中,entityFieldName为反向注入对应的他表外键字段的名字,voFieldName为反向注入之后给该字段的起的新名字;customFieldList中,uuid为自定义字段特有的UUID,创建DTO的时候不需要填入,因为TOCO会自动为其分配UUID,更新DTO的时候需要传入,用于定位需要更新的自定义字段;typeUuid参数对应类结构的UUID,当type为List且innerType=Enum、Eo时会包含该字段;extendFieldList中,name为继承字段的名称,如果要继承的DTO字段不是DTO类型,则VO中的字段类型将与DTO字段一致,如果DTO中的字段为DTO或List<DTO>类型,由于VO中的字段类型不能为DTO,**必须**将该DTO转换为VO才可作为VO字段使用,所以extendFieldList中会有**一个vo结构**,用来表示该字段DTO类型派生出的VO定义,注意:该VO字段中的VO类型必须派生自继承的DTO字段类型!
|
- **TOCO中json结构描述:** 在TOCO中,VO使用一个json结构表示,该结构可用于理解VO的含义,或作为创建、更新VO工具的参数。部分字段的含义为:expandList为正向替换,reverseExpandList为反向注入,extendFieldList为来自派生源DTO的字段,customFieldList为自定义字段。expandListList中,foreignKeyInThisEntity为正向替换对应的本表外键字段的名字,voFieldName为正向替换之后给该字段的起的新名字;reverseExpandList中,foreignKeyInOtherEntity为反向注入对应的他表外键字段的名字,voFieldName为反向注入之后给该字段的起的新名字;customFieldList中,uuid为自定义字段特有的UUID,创建DTO的时候不需要填入,因为TOCO会自动为其分配UUID,更新DTO的时候需要传入,用于定位需要更新的自定义字段;typeUuid参数对应类结构的UUID,当type为List且innerType=Enum、Eo时会包含该字段;extendFieldList中,name为继承字段的名称,如果要继承的DTO字段不是DTO类型,则VO中的字段类型将与DTO字段一致,如果DTO中的字段为DTO或List<DTO>类型,由于VO中的字段类型不能为DTO,**必须**将该DTO转换为VO才可作为VO字段使用,所以extendFieldList中会有**一个vo结构**,用来表示该字段DTO类型派生出的VO定义,注意:该VO字段中的VO类型必须派生自继承的DTO字段类型!
|
||||||
示例如下:
|
示例如下:
|
||||||
系统中存在meeting_detail_dto
|
系统中存在meeting_detail_dto
|
||||||
```json
|
```json
|
||||||
@@ -343,7 +343,7 @@ DateTime endTime; //会议结束时间
|
|||||||
"description": "会议详情",
|
"description": "会议详情",
|
||||||
"expandList": [
|
"expandList": [
|
||||||
{
|
{
|
||||||
"entityFieldName": "create_user_id",
|
"foreignKeyInThisEntity": "create_user_id",
|
||||||
"voFieldName": "create_user",
|
"voFieldName": "create_user",
|
||||||
"dto": {
|
"dto": {
|
||||||
"uuid": "53bb59cf-1ed2-6fb3-9f61-895b638903d8",
|
"uuid": "53bb59cf-1ed2-6fb3-9f61-895b638903d8",
|
||||||
@@ -395,7 +395,7 @@ DateTime endTime; //会议结束时间
|
|||||||
],
|
],
|
||||||
"expandList": [
|
"expandList": [
|
||||||
{
|
{
|
||||||
"entityFieldName": "room_id",
|
"foreignKeyInThisEntity": "room_id",
|
||||||
"voFieldName": "meeting_room",
|
"voFieldName": "meeting_room",
|
||||||
"vo": {
|
"vo": {
|
||||||
"name": "meeting_room_with_meetings_vo",
|
"name": "meeting_room_with_meetings_vo",
|
||||||
@@ -406,7 +406,7 @@ DateTime endTime; //会议结束时间
|
|||||||
"fromDtoUuid": "88437212-6370-99a6-1e7a-fe1469082d08",
|
"fromDtoUuid": "88437212-6370-99a6-1e7a-fe1469082d08",
|
||||||
"reverseExpandList": [
|
"reverseExpandList": [
|
||||||
{
|
{
|
||||||
"entityFieldName": "room_id",
|
"foreignKeyInOtherEntity": "room_id",
|
||||||
"vo": {
|
"vo": {
|
||||||
"uuid": null,
|
"uuid": null,
|
||||||
"name": "meeting_base_vo",
|
"name": "meeting_base_vo",
|
||||||
|
|||||||
Reference in New Issue
Block a user