Commit 37c93cff authored by Noel Alonso's avatar Noel Alonso
Browse files

Añade clases para compatibilidad de taxonomy

parent ab2dc6d3
Loading
Loading
Loading
Loading
+65 −0
Original line number Diff line number Diff line
package es.redmic.models.es.administrative.taxonomy.dto;

/*-
 * #%L
 * Models
 * %%
 * Copyright (C) 2024 REDMIC Project / Server
 * %%
 * 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.
 * #L%
 */

import javax.validation.constraints.Size;

import es.redmic.models.es.common.dto.UuidDTO;

public class AnimalTaxonomyCompactDTO extends UuidDTO {

	private Long taxonid;

	private Long taxonomyid;

	@Size(min = 0, max = 250)
	private String photo;

	public Long getTaxonid() {
		return taxonid;
	}

	public void setTaxonid(Long taxonid) {
		this.taxonid = taxonid;
	}

	public Long getTaxonomyid() {
		return taxonomyid;
	}

	public void setTaxonomyid(Long taxonomyid) {
		this.taxonomyid = taxonomyid;
	}

	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	@Size(min = 1, max = 50)
	@Override
	public String getName() {
		return name;
	}
}
+44 −0
Original line number Diff line number Diff line
package es.redmic.models.es.administrative.taxonomy.dto;

/*-
 * #%L
 * Models
 * %%
 * Copyright (C) 2024 REDMIC Project / Server
 * %%
 * 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.
 * #L%
 */

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import es.redmic.models.es.common.dto.DTOImplementWithMeta;

@JsonIgnoreProperties(ignoreUnknown = true)
public class TaxonomyCompactDTO extends DTOImplementWithMeta {

	@NotNull
	@Size(min = 1, max = 150)
	private String scientificName;

	public String getScientificName() {
		return scientificName;
	}

	public void setScientificName(String scientificname) {
		this.scientificName = scientificname;
	}
}
+66 −0
Original line number Diff line number Diff line
package es.redmic.models.es.administrative.taxonomy.model;

/*-
 * #%L
 * Models
 * %%
 * Copyright (C) 2024 REDMIC Project / Server
 * %%
 * 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.
 * #L%
 */

import es.redmic.models.es.common.model.UuidModel;

public class AnimalTaxonomyCompact extends UuidModel {

	private String name;

	private Long taxonid;

	private Long taxononomyid;

	private String photo;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getTaxonid() {
		return taxonid;
	}

	public void setTaxonid(Long taxonid) {
		this.taxonid = taxonid;
	}

	public Long getTaxononomyid() {
		return taxononomyid;
	}

	public void setTaxononomyid(Long taxononomyid) {
		this.taxononomyid = taxononomyid;
	}

	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}
}
+36 −0
Original line number Diff line number Diff line
package es.redmic.models.es.administrative.taxonomy.model;

/*-
 * #%L
 * Models
 * %%
 * Copyright (C) 2024 REDMIC Project / Server
 * %%
 * 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.
 * #L%
 */

import es.redmic.models.es.common.model.BasePathAbstractES;

public class TaxonomyBase extends BasePathAbstractES {

	private String scientificName;

	public String getScientificName() {
		return scientificName;
	}

	public void setScientificName(String scientificname) {
		this.scientificName = scientificname;
	}
}