Search in sources :

Example 6 with Internal

use of io.spine.annotation.Internal in project core-java by SpineEventEngine.

the class RecordBasedRepository method findOrCreateRecord.

@Internal
@CheckReturnValue
public EntityRecord findOrCreateRecord(I id) {
    final E entity = findOrCreate(id);
    final EntityRecordWithColumns recordWithColumns = toRecord(entity);
    return recordWithColumns.getRecord();
}
Also used : EntityRecordWithColumns(io.spine.server.entity.storage.EntityRecordWithColumns) CheckReturnValue(javax.annotation.CheckReturnValue) Internal(io.spine.annotation.Internal)

Aggregations

Internal (io.spine.annotation.Internal)6 Command (io.spine.core.Command)2 Any (com.google.protobuf.Any)1 ThrowableMessage (io.spine.base.ThrowableMessage)1 CommandContext (io.spine.core.CommandContext)1 EntityColumn (io.spine.server.entity.storage.EntityColumn)1 EntityRecordWithColumns (io.spine.server.entity.storage.EntityRecordWithColumns)1 HashMap (java.util.HashMap)1 CheckReturnValue (javax.annotation.CheckReturnValue)1