提升@DbBind功能 · Issue #1323 · actframework/actframework · GitHub
Skip to content

提升@DbBind功能 #1323

Open
Open

Description

@moonmanbu

前端提交

{
  "foo": {
    "id": 1,
  },
  "bars": [
    {
      "id": 1
    },
    {
      "id": 2
    },
    {
      "id": 3
    }
    ...
  ]
    ...
  }
}

后端Model

...
@DbBind(...)
@ManyToOne
public Foo foo

@DbBind(...)
@OneToMany
public Collection<Bar> bars
...

根据前端http提交的内容从数据库获取完整的foo和bars Model

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions