Commit 51967aa8 authored by Matija Obreza's avatar Matija Obreza
Browse files

Java package organization

parent d1f12782
......@@ -15,15 +15,15 @@
**/
package org.genesys2.rest.common.model.impl;
package org.genesys2.server.common.model.impl;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.genesys2.rest.common.model.BusinessModel;
import org.genesys2.rest.common.model.genesys.Taxonomy;
import org.genesys2.server.common.model.BusinessModel;
import org.genesys2.server.common.model.genesys.Taxonomy;
@Entity
@Table(name = "croptaxonomy")
......
......@@ -14,7 +14,7 @@
* limitations under the License.
**/
package org.genesys2.rest.common.model.impl;
package org.genesys2.server.common.model.impl;
import java.util.Map;
......
......@@ -14,7 +14,7 @@
* limitations under the License.
**/
package org.genesys2.rest.common.model.impl;
package org.genesys2.server.common.model.impl;
import java.text.MessageFormat;
import java.util.Date;
......@@ -28,7 +28,7 @@ import javax.persistence.OneToMany;
import javax.persistence.OrderBy;
import javax.persistence.Table;
import org.genesys2.rest.common.model.BusinessModel;
import org.genesys2.server.common.model.BusinessModel;
@Entity
@Table(name = "dataset")
......
......@@ -14,7 +14,7 @@
* limitations under the License.
**/
package org.genesys2.rest.common.model.impl;
package org.genesys2.server.common.model.impl;
import javax.persistence.Column;
import javax.persistence.Entity;
......@@ -23,7 +23,7 @@ import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;
import org.genesys2.rest.common.model.BusinessModel;
import org.genesys2.server.common.model.BusinessModel;
@Entity
@Table(name = "datasetdescriptor", uniqueConstraints = { @UniqueConstraint(columnNames = { "datasetId", "descriptorId" }) })
......
......@@ -14,7 +14,7 @@
* limitations under the License.
**/
package org.genesys2.rest.common.model.impl;
package org.genesys2.server.common.model.impl;
import java.text.MessageFormat;
......@@ -23,7 +23,7 @@ import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;
import org.genesys2.rest.common.model.BusinessModel;
import org.genesys2.server.common.model.BusinessModel;
/**
* A Descriptor represents a dimension of a sparse vector.
......
......@@ -14,7 +14,7 @@
* limitations under the License.
**/
package org.genesys2.rest.common.model.impl;
package org.genesys2.server.common.model.impl;
import java.text.MessageFormat;
......@@ -28,7 +28,7 @@ import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;
import org.genesys2.rest.common.lucene.genesys.FaoInstituteBridge;
import org.genesys2.server.common.lucene.genesys.FaoInstituteBridge;
import org.hibernate.annotations.Index;
import org.hibernate.search.annotations.Boost;
import org.hibernate.search.annotations.ClassBridge;
......
......@@ -14,7 +14,7 @@
* limitations under the License.
**/
package org.genesys2.rest.common.model.impl;
package org.genesys2.server.common.model.impl;
import javax.persistence.MappedSuperclass;
......
......@@ -15,14 +15,14 @@
**/
package org.genesys2.rest.common.model.impl;
package org.genesys2.server.common.model.impl;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;
import org.genesys2.rest.common.model.BusinessModel;
import org.genesys2.server.common.model.BusinessModel;
/**
* A {@link License} entity represents one of the possible licenses in use by an
......
......@@ -14,7 +14,7 @@
* limitations under the License.
**/
package org.genesys2.rest.common.model.impl;
package org.genesys2.server.common.model.impl;
import java.util.ArrayList;
import java.util.List;
......@@ -29,7 +29,7 @@ import javax.persistence.Lob;
import javax.persistence.ManyToMany;
import javax.persistence.Table;
import org.genesys2.rest.common.model.BusinessModel;
import org.genesys2.server.common.model.BusinessModel;
import org.hibernate.search.annotations.Field;
import org.hibernate.search.annotations.Indexed;
import org.hibernate.search.annotations.Store;
......
......@@ -14,14 +14,14 @@
* limitations under the License.
**/
package org.genesys2.rest.common.model.impl;
package org.genesys2.server.common.model.impl;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.OrderColumn;
import javax.persistence.Table;
import org.genesys2.rest.common.model.BusinessModel;
import org.genesys2.server.common.model.BusinessModel;
import org.hibernate.annotations.Index;
/**
......
......@@ -14,14 +14,14 @@
* limitations under the License.
**/
package org.genesys2.rest.common.model.impl;
package org.genesys2.server.common.model.impl;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.genesys2.rest.common.model.BusinessModel;
import org.genesys2.server.common.model.BusinessModel;
/**
* Represents a sparse data vector, part of a {@link Dataset} in the system.
......
......@@ -14,7 +14,7 @@
* limitations under the License.
**/
package org.genesys2.rest.common.model.impl;
package org.genesys2.server.common.model.impl;
import java.util.HashSet;
......@@ -33,8 +33,8 @@ import net.sf.oval.constraint.Email;
import net.sf.oval.constraint.NotEmpty;
import net.sf.oval.constraint.NotNull;
import org.genesys2.rest.common.model.BusinessModel;
import org.genesys2.rest.common.model.UserRole;
import org.genesys2.server.common.model.BusinessModel;
import org.genesys2.server.common.model.UserRole;
@Entity
@Table(name = "user")
......
......@@ -15,7 +15,7 @@
**/
package org.genesys2.rest.common.model.wrapper;
package org.genesys2.server.common.model.wrapper;
public class KeyValueNameWrapper {
private Long id;
......
......@@ -15,7 +15,7 @@
**/
package org.genesys2.rest.common.model.wrapper;
package org.genesys2.server.common.model.wrapper;
public class KeyValueWrapper {
private Long id;
......
......@@ -15,13 +15,13 @@
**/
package org.genesys2.rest.common.model.wrapper;
package org.genesys2.server.common.model.wrapper;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import org.genesys2.rest.common.model.UserRole;
import org.genesys2.server.common.model.UserRole;
public class UserWrapper {
......
......@@ -14,9 +14,9 @@
* limitations under the License.
**/
package org.genesys2.rest.common.persistence.domain;
package org.genesys2.server.common.persistence.domain;
import org.genesys2.rest.common.model.genesys.AllAcqBreeding;
import org.genesys2.server.common.model.genesys.AllAcqBreeding;
import org.springframework.data.jpa.repository.JpaRepository;
public interface AccessionBreedingRepository extends JpaRepository<AllAcqBreeding, Long> {
......
......@@ -14,9 +14,9 @@
* limitations under the License.
**/
package org.genesys2.rest.common.persistence.domain;
package org.genesys2.server.common.persistence.domain;
import org.genesys2.rest.common.model.genesys.AllAcqCollect;
import org.genesys2.server.common.model.genesys.AllAcqCollect;
import org.springframework.data.jpa.repository.JpaRepository;
public interface AccessionCollectRepository extends JpaRepository<AllAcqCollect, Long> {
......
......@@ -14,9 +14,9 @@
* limitations under the License.
**/
package org.genesys2.rest.common.persistence.domain;
package org.genesys2.server.common.persistence.domain;
import org.genesys2.rest.common.model.genesys.AllEnvironment;
import org.genesys2.server.common.model.genesys.AllEnvironment;
import org.springframework.data.jpa.repository.JpaRepository;
public interface AccessionEnvironmentRepository extends JpaRepository<AllEnvironment, Long> {
......
......@@ -14,9 +14,9 @@
* limitations under the License.
**/
package org.genesys2.rest.common.persistence.domain;
package org.genesys2.server.common.persistence.domain;
import org.genesys2.rest.common.model.genesys.AllAcqExchange;
import org.genesys2.server.common.model.genesys.AllAcqExchange;
import org.springframework.data.jpa.repository.JpaRepository;
public interface AccessionExchangeRepository extends JpaRepository<AllAcqExchange, Long> {
......
......@@ -14,9 +14,9 @@
* limitations under the License.
**/
package org.genesys2.rest.common.persistence.domain;
package org.genesys2.server.common.persistence.domain;
import org.genesys2.rest.common.model.genesys.AllAccnames;
import org.genesys2.server.common.model.genesys.AllAccnames;
import org.springframework.data.jpa.repository.JpaRepository;
public interface AccessionNameRepository extends JpaRepository<AllAccnames, Long> {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment