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

org.droidparts.test.model.Primitives Maven / Gradle / Ivy

The newest version!
/**
 * Copyright 2016 Alex Yanchenko
 * 
 * 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 org.droidparts.test.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.HashSet;

import org.droidparts.annotation.serialize.JSON;
import org.droidparts.annotation.sql.Column;
import org.droidparts.model.Entity;

public class Primitives extends Entity {
	private static final long serialVersionUID = 1L;

	@JSON
	public int int1;
	@JSON
	public int int2;
	@JSON
	public float float1;
	@JSON
	public float float2;
	@JSON
	public boolean boolean1;
	@JSON
	public boolean boolean2;
	@JSON
	public boolean boolean3;
	@JSON
	public boolean boolean4;
	@JSON
	public String string1;

	@Column(nullable = true)
	public En en;
	@Column(nullable = true)
	public En[] enArr;

	@Column(nullable = true)
	public Date date;
	@Column
	public final ArrayList dates = new ArrayList();

	@JSON(key = "string_array")
	@Column(nullable = true)
	public String[] strArr;
	@JSON(key = "long_array")
	public ArrayList longList;

	@Column(nullable = true)
	public int[] intArr;
	@Column
	public ArrayList strList = new ArrayList();
	@Column
	public HashSet doubleSet = new HashSet();

	public static enum En {

		HI(14), THERE(1024);

		public final int id;

		private En(int id) {
			this.id = id;
		}

	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy