All Downloads are FREE. Search and download functionalities are using the official Maven repository.

info.archinnov.achilles.internals.entities.EntityWithComplexIndices Maven / Gradle / Ivy

/*
 * Copyright (C) 2012-2016 DuyHai DOAN
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package info.archinnov.achilles.internals.entities;

import java.util.List;
import java.util.Map;
import java.util.Set;

import info.archinnov.achilles.annotations.*;

@Table
public class EntityWithComplexIndices {

    @PartitionKey
    private Long id;

    @Index
    @Column
    private String simpleIndex;


    @Index
    @Column
    private List collectionIndex;

    @Index
    @Column
    @Frozen
    private Set fullIndexOnCollection;

    @Column
    private Map<@Index String, String> indexOnMapKey;

    @Index
    @Column
    private Map indexOnMapEntry;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSimpleIndex() {
        return simpleIndex;
    }

    public void setSimpleIndex(String simpleIndex) {
        this.simpleIndex = simpleIndex;
    }

    public List getCollectionIndex() {
        return collectionIndex;
    }

    public void setCollectionIndex(List collectionIndex) {
        this.collectionIndex = collectionIndex;
    }

    public Set getFullIndexOnCollection() {
        return fullIndexOnCollection;
    }

    public void setFullIndexOnCollection(Set fullIndexOnCollection) {
        this.fullIndexOnCollection = fullIndexOnCollection;
    }

    public Map getIndexOnMapKey() {
        return indexOnMapKey;
    }

    public void setIndexOnMapKey(Map indexOnMapKey) {
        this.indexOnMapKey = indexOnMapKey;
    }

    public Map getIndexOnMapEntry() {
        return indexOnMapEntry;
    }

    public void setIndexOnMapEntry(Map indexOnMapEntry) {
        this.indexOnMapEntry = indexOnMapEntry;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy