Toggle navigation
Toggle navigation
This project
Loading...
Sign in
grogv3
/
grog-cubi
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Jean-Francois Leveque
2016-09-28 17:01:01 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5b43cb5ab16ef2ab0a5dd28f81b2f0be7bbb776f
5b43cb5a
1 parent
67f8fb5e
Editeur a maintenant un pays
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
2 deletions
src/main/java/org/legrog/entities/Country.java
src/main/java/org/legrog/entities/PublisherRevision.java
src/main/java/org/legrog/entities/Country.java
0 → 100644
View file @
5b43cb5
package
org
.
legrog
.
entities
;
import
javax.persistence.*
;
@Entity
//@Table(name="pays")
public
class
Country
/* extends org.roliste.data.DbEntity */
{
// @Column(name = "ID_PAYS")
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
AUTO
)
private
int
countryId
;
private
String
countryName
;
public
int
getCountryId
()
{
return
countryId
;
}
public
void
setCountryId
(
int
countryId
)
{
this
.
countryId
=
countryId
;
}
public
String
getCountryName
()
{
return
countryName
;
}
public
void
setCountryName
(
String
countryName
)
{
this
.
countryName
=
countryName
;
}
/**
* Returns a string representation of this country definition.
* @return a string representing this country definition.
* @hidden
*/
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
"ID_PAYS="
);
sb
.
append
(
countryId
);
sb
.
append
(
" LIB_PAYS="
);
sb
.
append
(
countryName
);
return
sb
.
toString
();
}
}
\ No newline at end of file
src/main/java/org/legrog/entities/PublisherRevision.java
View file @
5b43cb5
...
...
@@ -14,8 +14,8 @@ public class PublisherRevision {
private
String
publisherPostOfficeBoxNumber
;
private
String
publisherAddressRegion
;
private
String
publisherAddressLocality
;
// TODO Créer l'entité Country
//
private Country publisherAddressCountry;
@ManyToOne
private
Country
publisherAddressCountry
;
private
String
publisherTelephone
;
private
String
publisherEmail
;
private
String
publisherURL
;
...
...
@@ -128,4 +128,20 @@ public class PublisherRevision {
public
void
setPublisherName
(
String
publisherName
)
{
this
.
publisherName
=
publisherName
;
}
public
Country
getPublisherAddressCountry
()
{
return
publisherAddressCountry
;
}
public
void
setPublisherAddressCountry
(
Country
publisherAddressCountry
)
{
this
.
publisherAddressCountry
=
publisherAddressCountry
;
}
public
User
getPublisherRevisionAuthor
()
{
return
publisherRevisionAuthor
;
}
public
void
setPublisherRevisionAuthor
(
User
publisherRevisionAuthor
)
{
this
.
publisherRevisionAuthor
=
publisherRevisionAuthor
;
}
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment