dddplus-spec/src/main/java/io/github/dddplus/model/association/HasOne.java
/*
* Copyright DDDplus Authors.
*
* Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package io.github.dddplus.model.association;
/**
* 关联对象:有一个.
*
* @param <Entity> 被关联对象类型
*/
public interface HasOne<Entity> {
/**
* 获取拥有的那一个关联对象.
*/
Entity get();
}