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

org.sakaiproject.tasks.api.TaskAssigned Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2003-2022 The Apereo Foundation
 *
 * Licensed under the Educational Community 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://opensource.org/licenses/ecl2
 *
 * 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.sakaiproject.tasks.api;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Index;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.sakaiproject.springframework.data.PersistableEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@Entity
@EqualsAndHashCode(onlyExplicitlyIncluded = true)
@Table(name = "TASKS_ASSIGNED", indexes = {
    @Index(name = "IDX_TASKS_ASSIGNED", columnList = "TASK_ID")
})
public class TaskAssigned implements PersistableEntity {

	@Id
	@Column(name = "ID")
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "tasks_assigned_id_sequence")
	@SequenceGenerator(name = "tasks_assigned_id_sequence", sequenceName = "TASKS_ASSIGNED_S")
	@EqualsAndHashCode.Include
	private Long id;

	@ManyToOne
	@JoinColumn(name = "TASK_ID", nullable = false)
	private Task task;

	@Column(name = "ASSIGNATION_TYPE", nullable = false)
	@Enumerated(EnumType.STRING)
	private AssignationType type;

	@Column(name = "OBJECT_ID", length = 99, nullable = true)
	private String objectId;
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy