// Path: src/main/java/org/fuin/ddd4j/ddd/AggregateRootId.java
// public interface AggregateRootId extends EntityId {
// 
// }
// 
// Path: src/main/java/org/fuin/ddd4j/ddd/EntityType.java
// public interface EntityType extends Serializable {
// 
//     /**
//      * Returns the entity type name as string.
//      * 
//      * @return Unique entity type name.
//      */
//     public String asString();
// 
// }


import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.fuin.objects4j.common.Immutable;
import org.fuin.ddd4j.ddd.AggregateRootId;
import org.fuin.ddd4j.ddd.EntityType;
import org.fuin.esc.api.StreamId;
import org.fuin.objects4j.vo.KeyValue;

/**
 * Copyright (C) 2015 Michael Schnell. All rights reserved. 
 * http://www.fuin.org/
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 3 of the License, or (at your option) any
 * later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this library. If not, see http://www.gnu.org/licenses/.
 */
package org.fuin.ddd4j.esrepo;




/**
 * Unique name of an aggregate stream. Equals and has code are based on the {@link #asString()} method.
 */
@Immutable
public final class AggregateStreamId implements StreamId {

    private static final long serialVersionUID = 1000L;

    private EntityType type;

    private String paramName;


// Path: src/main/java/org/fuin/ddd4j/ddd/AggregateRootId.java
// public interface AggregateRootId extends EntityId {
// 
// }
// 
// Path: src/main/java/org/fuin/ddd4j/ddd/EntityType.java
// public interface EntityType extends Serializable {
// 
//     /**
//      * Returns the entity type name as string.
//      * 
//      * @return Unique entity type name.
//      */
//     public String asString();
// 
// }


// Path: src/main/java/org/fuin/ddd4j/esrepo/AggregateStreamId.java
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.fuin.objects4j.common.Immutable;
import org.fuin.ddd4j.ddd.AggregateRootId;
import org.fuin.ddd4j.ddd.EntityType;
import org.fuin.esc.api.StreamId;
import org.fuin.objects4j.vo.KeyValue;

/**
 * Copyright (C) 2015 Michael Schnell. All rights reserved. 
 * http://www.fuin.org/
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 3 of the License, or (at your option) any
 * later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this library. If not, see http://www.gnu.org/licenses/.
 */
package org.fuin.ddd4j.esrepo;




/**
 * Unique name of an aggregate stream. Equals and has code are based on the {@link #asString()} method.
 */
@Immutable
public final class AggregateStreamId implements StreamId {

    private static final long serialVersionUID = 1000L;

    private EntityType type;

    private String paramName;


    private AggregateRootId paramValue;
