|
|
@@ -42,16 +42,16 @@ type Simple[LI any, RI any] struct {
|
|
|
func (simple *Simple[LI, RI]) bind(binder *binding.Binder) {
|
|
|
options := simple.options
|
|
|
|
|
|
- leftDomainPath := entity.RelativeDomainPath(simple.Left)
|
|
|
- rightDomainPath := entity.RelativeDomainPath(simple.Right)
|
|
|
+ leftDomainPath := domain.RelativeDomainPath(simple.Left)
|
|
|
+ rightDomainPath := domain.RelativeDomainPath(simple.Right)
|
|
|
|
|
|
leftRelationFieldName := fmt.Sprintf("%sIDs", simple.Right.DomainCamelName())
|
|
|
rightRelationFieldName := fmt.Sprintf("%sIDs", simple.Left.DomainCamelName())
|
|
|
|
|
|
- middleTableName := entity.SnakeDomainName(simple.Left) + "_and_" + entity.SnakeDomainName(simple.Right)
|
|
|
- leftTableName := entity.TableName(simple.Schema, simple.Left)
|
|
|
+ middleTableName := domain.SnakeDomainName(simple.Left) + "_and_" + domain.SnakeDomainName(simple.Right)
|
|
|
+ leftTableName := domain.TableName(simple.Schema, simple.Left)
|
|
|
leftRelationColumnName := fmt.Sprintf("%s_id", strcase.ToSnake(simple.Right.DomainCamelName()))
|
|
|
- rightTableName := entity.TableName(simple.Schema, simple.Right)
|
|
|
+ rightTableName := domain.TableName(simple.Schema, simple.Right)
|
|
|
rightRelationColumnName := fmt.Sprintf("%s_id", strcase.ToSnake(simple.Left.DomainCamelName()))
|
|
|
|
|
|
if !options.disableLeft {
|