dbflute / dbflute-core

DBFlute core libraries for Java8
http://dbflute.seasar.org/
24 stars 18 forks source link

DBFlute Engine: can accept relationship cardinality as supplement info #133

Open jflute opened 2 years ago

jflute commented 2 years ago

not only many-to-one but also "0..* : 1" for advanced functions in DBFlute.

e.g. ERFlute make this:

project-relationship-maihamadb.dfmap (or dfprop?)

map:{
    ; [table-DB-name] = map:{
        ; [FK-column-DB-name] (/[second]) = map:{
            ; fkName = FK_xxx
            ; foreignTable = [foreign table-DB-name]
            ; foreignColumn = [foreign column-DB-name] (/[second])
            ; localCardinality = 0..*
            ; foreignCardinality = 1
        }
    }
}