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

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

/*
 * Copyright (C) 2012-2019 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 info.archinnov.achilles.annotations.Column;
import info.archinnov.achilles.annotations.PartitionKey;
import info.archinnov.achilles.annotations.Table;
import info.archinnov.achilles.type.tuples.Tuple2;

@Table(table = "entity_with_native_collections")
public class EntityWithNativeCollections {

    @PartitionKey
    private Long id;

    @Column
    private List longList;

    @Column
    private List doubleList;

    @Column
    private Map mapIntLong;

    @Column
    private Tuple2, List> tuple2;

    public EntityWithNativeCollections(Long id, List longList, List doubleList, Map mapIntLong, Tuple2, List> tuple2) {
        this.id = id;
        this.longList = longList;
        this.doubleList = doubleList;
        this.mapIntLong = mapIntLong;
        this.tuple2 = tuple2;
    }

    public EntityWithNativeCollections() {
    }

    public Long getId() {
        return id;
    }

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

    public List getLongList() {
        return longList;
    }

    public void setLongList(List longList) {
        this.longList = longList;
    }

    public List getDoubleList() {
        return doubleList;
    }

    public void setDoubleList(List doubleList) {
        this.doubleList = doubleList;
    }

    public Map getMapIntLong() {
        return mapIntLong;
    }

    public void setMapIntLong(Map mapIntLong) {
        this.mapIntLong = mapIntLong;
    }

    public Tuple2, List> getTuple2() {
        return tuple2;
    }

    public void setTuple2(Tuple2, List> tuple2) {
        this.tuple2 = tuple2;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy