-
I observed inconsistent behavior and API when trying to reuse and compose DetachedCriteria instances together:
- Criteria composition seems to only work with closure based detached criterias
- It se…
-
As a api user, I want to example json to ONLY contain the fields that will be serialized to JSON when invoking APIs.
Grails Domain Classes list additional trait attributes that are not serialized t…
-
Given the domain classes
```
class Org {
String name
OrgMember member
static mappedBy = [member: "org"]
static constraints = {
member nullable: true
}
static mapping = {
…
-
it's currently using a `string` because at the time, it looked like gorm couldn't handle `(database/sql/driver).Valuer`s. I've found, in https://github.com/deis/workflow-manager-api/pull/105, that it …
-
我现在原生`sql`查询`json`数据可以查询出结果
![image](https://github.com/go-gorm/gen/assets/15928680/1c1ea12b-ca80-480b-a385-01101738d524)
但是我想在`gorm/gen`里面如何使用呢,是不是只能写原生`sql`
-
## Describe the feature
A plugin which detects when a db instance is being re-used for multiple finalizer methods. The plugin marks the database instance the first time any finalizer method is…
-
For JSON columns, give option to unmarshal to map[string]interface{} or custom object.
**v3 Relations**
1. If struct contains field which is struct (pointer or concrete), then fetch.
2. If struct…
pjebs updated
2 years ago
-
Each model is duplicated at least twice. In generic model that is used to pass data between layers and DB specific model containing `sql.Null*` types or `mysql.NullTime` or such.
Also this forces u…
-
## Your Question
Is there a way to change the polymorphic fields type and id naming convetion?
Currently in the docs the only way to use polymorphic feature is to follow `polymorphic+"ID"`, `pol…
-
## Your Question
I want to track every query to the database (MySQL).
This is the init:
```
func InitDatabase() error {
err = DBEnv.Db.Callback().Query().After("*").Register("full_logger", setQu…