程序包 org.babyfish.jimmer.sql
package org.babyfish.jimmer.sql
-
类说明Optional annotation to specify the column name for scalar properties.This annotation can be used to decorates scalar properties except `@Id`, `@Key` and `@Version`, to specify default value for insert operation.Configuration for many-to-one (or one-to-one) associations directly based on foreign keys.If a scalar property is decorated by this annotation, it will be automatically excluded from either `allScalarsFields` of object fetcher or `#allScalars` or DTO language.For example,Optional annotation to specify the column name for foreign key properties, that means many-to-one or one-to-one property which is neither reversed (with `mappedBy`) nor based on middle table.Be different with
JoinTable, this annotation is used by UNSTRUCTURED many-to-many mappings.This annotation should typically be used withManyToMany, but it can also be used withManyToOneorOneToOne.This annotation can affect the behavior of the save command.Logical deleted flag.In general, developers should useManyToManyto map many-to-many associations, and the corresponding middle table should only have two foreign key fields.This annotation decorate many-to-one association.The annotation can only be used on reference association based on foreign key.Example-1: Transient property