Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Genesys Backend
Commits
7c839fcc
Commit
7c839fcc
authored
Sep 05, 2013
by
Matija Obreza
Browse files
Copied in Genesys entities
parent
bc0ebc7d
Changes
25
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/crophub/rest/common/model/genesys/Accession.java
0 → 100644
View file @
7c839fcc
/**
* Copyright 2013 Global Crop Diversity Trust
*
* 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.crophub.rest.common.model.genesys
;
// Generated Apr 24, 2013 10:08:59 AM by Hibernate Tools 4.0.0
import
java.text.MessageFormat
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.JoinColumn
;
import
javax.persistence.ManyToOne
;
import
javax.persistence.Table
;
import
org.crophub.rest.common.model.impl.FaoInstitute
;
@Entity
// @Table(name = "accession")
@Table
(
name
=
"accession"
)
public
class
Accession
implements
java
.
io
.
Serializable
{
private
static
final
long
serialVersionUID
=
-
7630113633534038876L
;
private
Long
id
;
// private String instituteCode;
private
FaoInstitute
institute
;
private
String
accNumbHi
;
private
Taxonomy
taxonomy
;
private
String
acquisitionSource
;
private
String
acquisitionDate
;
private
String
origin
;
private
String
dublInst
;
private
String
sampleStatus
;
private
String
storage
;
private
Boolean
inSvalbard
;
private
Boolean
inTrust
;
private
Boolean
availability
;
private
Boolean
mlsStatus
;
private
String
genus
;
public
Accession
()
{
}
@Id
@GeneratedValue
@Column
(
name
=
"id"
,
unique
=
true
,
nullable
=
false
)
public
Long
getId
()
{
return
this
.
id
;
}
public
void
setId
(
final
Long
alisId
)
{
this
.
id
=
alisId
;
}
@ManyToOne
(
cascade
=
{},
optional
=
false
)
@JoinColumn
(
name
=
"Institute"
,
referencedColumnName
=
"code"
,
nullable
=
false
)
public
FaoInstitute
getInstitute
()
{
return
this
.
institute
;
}
public
void
setInstitute
(
final
FaoInstitute
institute
)
{
this
.
institute
=
institute
;
}
// @Column(name = "Institute", length = 6)
// public String getInstituteCode() {
// return instituteCode;
// }
//
// public void setInstituteCode(final String instituteCode) {
// this.instituteCode = instituteCode;
// }
@Column
(
name
=
"ACC_Numb_HI"
,
nullable
=
false
,
length
=
128
)
public
String
getAccessionName
()
{
return
this
.
accNumbHi
;
}
public
void
setAccessionName
(
final
String
accNumbHi
)
{
this
.
accNumbHi
=
accNumbHi
;
}
@ManyToOne
(
cascade
=
{},
optional
=
true
)
@JoinColumn
(
name
=
"Taxon_Code"
)
public
Taxonomy
getTaxonomy
()
{
return
this
.
taxonomy
;
}
public
void
setTaxonomy
(
final
Taxonomy
taxonomy
)
{
this
.
taxonomy
=
taxonomy
;
}
@Column
(
name
=
"Acquisition_Source"
,
length
=
3
)
public
String
getAcquisitionSource
()
{
return
this
.
acquisitionSource
;
}
public
void
setAcquisitionSource
(
final
String
acquisitionSource
)
{
this
.
acquisitionSource
=
acquisitionSource
;
}
@Column
(
name
=
"Acquisition_Date"
,
length
=
8
)
public
String
getAcquisitionDate
()
{
return
this
.
acquisitionDate
;
}
public
void
setAcquisitionDate
(
final
String
acquisitionDate
)
{
this
.
acquisitionDate
=
acquisitionDate
;
}
@Column
(
name
=
"Origin"
,
length
=
3
)
public
String
getOrigin
()
{
return
this
.
origin
;
}
public
void
setOrigin
(
final
String
origin
)
{
this
.
origin
=
origin
;
}
@Column
(
name
=
"Dubl_Inst"
,
length
=
8
)
public
String
getDublInst
()
{
return
this
.
dublInst
;
}
public
void
setDublInst
(
final
String
dublInst
)
{
this
.
dublInst
=
dublInst
;
}
@Column
(
name
=
"Sample_Status"
,
length
=
3
)
public
String
getSampleStatus
()
{
return
this
.
sampleStatus
;
}
public
void
setSampleStatus
(
final
String
sampleStatus
)
{
this
.
sampleStatus
=
sampleStatus
;
}
@Column
(
name
=
"Storage"
,
length
=
12
)
public
String
getStorage
()
{
return
this
.
storage
;
}
public
void
setStorage
(
final
String
storage
)
{
this
.
storage
=
storage
;
}
@Column
(
name
=
"In_Svalbard"
)
public
Boolean
getInSvalbard
()
{
return
this
.
inSvalbard
;
}
public
void
setInSvalbard
(
final
Boolean
inSvalbard
)
{
this
.
inSvalbard
=
inSvalbard
;
}
@Column
(
name
=
"In_Trust"
)
public
Boolean
getInTrust
()
{
return
this
.
inTrust
;
}
public
void
setInTrust
(
final
Boolean
inTrust
)
{
this
.
inTrust
=
inTrust
;
}
@Column
(
name
=
"Availability"
)
public
Boolean
getAvailability
()
{
return
this
.
availability
;
}
public
void
setAvailability
(
final
Boolean
availability
)
{
this
.
availability
=
availability
;
}
@Column
(
name
=
"MLS_Status"
)
public
Boolean
getMlsStatus
()
{
return
this
.
mlsStatus
;
}
public
void
setMlsStatus
(
final
Boolean
mlsStatus
)
{
this
.
mlsStatus
=
mlsStatus
;
}
@Column
(
name
=
"Genuss"
,
nullable
=
false
,
length
=
64
)
public
String
getGenus
()
{
return
this
.
genus
;
}
public
void
setGenus
(
final
String
genuss
)
{
this
.
genus
=
genuss
;
}
@Override
public
String
toString
()
{
return
MessageFormat
.
format
(
"Accession id={0,number,#} A={3} inst={1} genus={2}"
,
id
,
institute
.
getCode
(),
genus
,
accNumbHi
);
}
}
src/main/java/org/crophub/rest/common/model/genesys/AllAccnames.java
0 → 100644
View file @
7c839fcc
/**
* Copyright 2013 Global Crop Diversity Trust
*
* 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.crophub.rest.common.model.genesys
;
// Generated Apr 24, 2013 10:08:59 AM by Hibernate Tools 4.0.0
import
javax.persistence.Column
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
/**
* AllAccnames generated by hbm2java
*/
// @Entity
@Table
(
name
=
"all_accnames"
)
public
class
AllAccnames
implements
java
.
io
.
Serializable
{
/**
*
*/
private
static
final
long
serialVersionUID
=
-
2785898802497223245L
;
private
int
alisId
;
private
String
accNames
;
private
String
otherIds
;
public
AllAccnames
()
{
}
public
AllAccnames
(
final
int
alisId
)
{
this
.
alisId
=
alisId
;
}
public
AllAccnames
(
final
int
alisId
,
final
String
accNames
,
final
String
otherIds
)
{
this
.
alisId
=
alisId
;
this
.
accNames
=
accNames
;
this
.
otherIds
=
otherIds
;
}
@Id
@Column
(
name
=
"ALIS_Id"
,
unique
=
true
,
nullable
=
false
)
public
int
getAlisId
()
{
return
this
.
alisId
;
}
public
void
setAlisId
(
final
int
alisId
)
{
this
.
alisId
=
alisId
;
}
@Column
(
name
=
"AccNames"
,
length
=
65535
)
public
String
getAccNames
()
{
return
this
.
accNames
;
}
public
void
setAccNames
(
final
String
accNames
)
{
this
.
accNames
=
accNames
;
}
@Column
(
name
=
"OtherIds"
,
length
=
65535
)
public
String
getOtherIds
()
{
return
this
.
otherIds
;
}
public
void
setOtherIds
(
final
String
otherIds
)
{
this
.
otherIds
=
otherIds
;
}
}
src/main/java/org/crophub/rest/common/model/genesys/AllAcqBreeding.java
0 → 100644
View file @
7c839fcc
/**
* Copyright 2013 Global Crop Diversity Trust
*
* 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.crophub.rest.common.model.genesys
;
// Generated Apr 24, 2013 10:08:59 AM by Hibernate Tools 4.0.0
import
javax.persistence.Column
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
/**
* AllAcqBreeding generated by hbm2java
*/
// @Entity
@Table
(
name
=
"all_acq_breeding"
)
public
class
AllAcqBreeding
implements
java
.
io
.
Serializable
{
/**
*
*/
private
static
final
long
serialVersionUID
=
2762545036218363406L
;
private
int
alisId
;
private
String
breederCode
;
private
String
pedigree
;
public
AllAcqBreeding
()
{
}
public
AllAcqBreeding
(
final
int
alisId
)
{
this
.
alisId
=
alisId
;
}
public
AllAcqBreeding
(
final
int
alisId
,
final
String
breederCode
,
final
String
pedigree
)
{
this
.
alisId
=
alisId
;
this
.
breederCode
=
breederCode
;
this
.
pedigree
=
pedigree
;
}
@Id
@Column
(
name
=
"ALIS_Id"
,
unique
=
true
,
nullable
=
false
)
public
int
getAlisId
()
{
return
this
.
alisId
;
}
public
void
setAlisId
(
final
int
alisId
)
{
this
.
alisId
=
alisId
;
}
@Column
(
name
=
"Breeder_Code"
,
length
=
8
)
public
String
getBreederCode
()
{
return
this
.
breederCode
;
}
public
void
setBreederCode
(
final
String
breederCode
)
{
this
.
breederCode
=
breederCode
;
}
@Column
(
name
=
"Pedigree"
,
length
=
65535
)
public
String
getPedigree
()
{
return
this
.
pedigree
;
}
public
void
setPedigree
(
final
String
pedigree
)
{
this
.
pedigree
=
pedigree
;
}
}
src/main/java/org/crophub/rest/common/model/genesys/AllAcqCollect.java
0 → 100644
View file @
7c839fcc
/**
* Copyright 2013 Global Crop Diversity Trust
*
* 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.crophub.rest.common.model.genesys
;
// Generated Apr 24, 2013 10:08:59 AM by Hibernate Tools 4.0.0
import
javax.persistence.Column
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
/**
* AllAcqCollect generated by hbm2java
*/
// @Entity
@Table
(
name
=
"all_acq_collect"
)
public
class
AllAcqCollect
implements
java
.
io
.
Serializable
{
/**
*
*/
private
static
final
long
serialVersionUID
=
516402638057331415L
;
private
int
alisId
;
private
String
collectDate
;
private
String
collectorsNumb
;
private
String
collectingInstitute
;
private
String
collectSite
;
public
AllAcqCollect
()
{
}
public
AllAcqCollect
(
final
int
alisId
)
{
this
.
alisId
=
alisId
;
}
public
AllAcqCollect
(
final
int
alisId
,
final
String
collectDate
,
final
String
collectorsNumb
,
final
String
collectingInstitute
,
final
String
collectSite
)
{
this
.
alisId
=
alisId
;
this
.
collectDate
=
collectDate
;
this
.
collectorsNumb
=
collectorsNumb
;
this
.
collectingInstitute
=
collectingInstitute
;
this
.
collectSite
=
collectSite
;
}
@Id
@Column
(
name
=
"ALIS_Id"
,
unique
=
true
,
nullable
=
false
)
public
int
getAlisId
()
{
return
this
.
alisId
;
}
public
void
setAlisId
(
final
int
alisId
)
{
this
.
alisId
=
alisId
;
}
@Column
(
name
=
"Collect_Date"
,
length
=
8
)
public
String
getCollectDate
()
{
return
this
.
collectDate
;
}
public
void
setCollectDate
(
final
String
collectDate
)
{
this
.
collectDate
=
collectDate
;
}
@Column
(
name
=
"Collectors_Numb"
,
length
=
24
)
public
String
getCollectorsNumb
()
{
return
this
.
collectorsNumb
;
}
public
void
setCollectorsNumb
(
final
String
collectorsNumb
)
{
this
.
collectorsNumb
=
collectorsNumb
;
}
@Column
(
name
=
"Collecting_Institute"
,
length
=
8
)
public
String
getCollectingInstitute
()
{
return
this
.
collectingInstitute
;
}
public
void
setCollectingInstitute
(
final
String
collectingInstitute
)
{
this
.
collectingInstitute
=
collectingInstitute
;
}
@Column
(
name
=
"Collect_Site"
,
length
=
16777215
)
public
String
getCollectSite
()
{
return
this
.
collectSite
;
}
public
void
setCollectSite
(
final
String
collectSite
)
{
this
.
collectSite
=
collectSite
;
}
}
src/main/java/org/crophub/rest/common/model/genesys/AllAcqExchange.java
0 → 100644
View file @
7c839fcc
/**
* Copyright 2013 Global Crop Diversity Trust
*
* 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.crophub.rest.common.model.genesys
;
// Generated Apr 24, 2013 10:08:59 AM by Hibernate Tools 4.0.0
import
javax.persistence.Column
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
/**
* AllAcqExchange generated by hbm2java
*/
// @Entity
@Table
(
name
=
"all_acq_exchange"
)
public
class
AllAcqExchange
implements
java
.
io
.
Serializable
{
/**
*
*/
private
static
final
long
serialVersionUID
=
2242341437805807473L
;
private
int
alisId
;
private
String
donorInstitute
;
private
String
accNumbDonor
;
public
AllAcqExchange
()
{
}
public
AllAcqExchange
(
final
int
alisId
)
{
this
.
alisId
=
alisId
;
}
public
AllAcqExchange
(
final
int
alisId
,
final
String
donorInstitute
,
final
String
accNumbDonor
)
{
this
.
alisId
=
alisId
;
this
.
donorInstitute
=
donorInstitute
;
this
.
accNumbDonor
=
accNumbDonor
;
}
@Id
@Column
(
name
=
"ALIS_Id"
,
unique
=
true
,
nullable
=
false
)
public
int
getAlisId
()
{
return
this
.
alisId
;
}
public
void
setAlisId
(
final
int
alisId
)
{
this
.
alisId
=
alisId
;
}
@Column
(
name
=
"Donor_Institute"
,
length
=
8
)
public
String
getDonorInstitute
()
{
return
this
.
donorInstitute
;
}
public
void
setDonorInstitute
(
final
String
donorInstitute
)
{
this
.
donorInstitute
=
donorInstitute
;
}
@Column
(
name
=
"Acc_Numb_Donor"
,
length
=
36
)
public
String
getAccNumbDonor
()
{
return
this
.
accNumbDonor
;
}
public
void
setAccNumbDonor
(
final
String
accNumbDonor
)
{
this
.
accNumbDonor
=
accNumbDonor
;
}
}
src/main/java/org/crophub/rest/common/model/genesys/Metadata.java
0 → 100644
View file @
7c839fcc
/**
* Copyright 2013 Global Crop Diversity Trust
*
* 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.crophub.rest.common.model.genesys
;
// Generated Apr 24, 2013 10:08:59 AM by Hibernate Tools 4.0.0
import
static
javax
.
persistence
.
GenerationType
.
IDENTITY
;
import
java.text.MessageFormat
;