Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
RECHER Marine
bookmarket2
Commits
40779db8
Commit
40779db8
authored
1 year ago
by
RECHER Marine
Browse files
Options
Download
Email Patches
Plain Diff
ajout contrainte ISBN
parent
4c261c38
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
0 deletions
+23
-0
bookmarket-data/pom.xml
bookmarket-data/pom.xml
+5
-0
bookmarket-data/src/main/java/net/tncy/mre/bookmarket/data/Book.java
...data/src/main/java/net/tncy/mre/bookmarket/data/Book.java
+5
-0
pom.xml
pom.xml
+13
-0
No files found.
bookmarket-data/pom.xml
View file @
40779db8
...
...
@@ -36,6 +36,11 @@
<version>
4.11
</version>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
net.tncy.mre.validator
</groupId>
<artifactId>
validation-constraints
</artifactId>
<version>
1.0.0-SNAPSHOT
</version>
</dependency>
</dependencies>
<build>
...
...
This diff is collapsed.
Click to expand it.
bookmarket-data/src/main/java/net/tncy/mre/bookmarket/data/Book.java
View file @
40779db8
package
net.tncy.mre.bookmarket.data
;
import
net.tncy.mre.validator.constraints.book.ISBN
;
public
class
Book
{
private
int
id
;
private
String
titre
;
@ISBN
private
String
isbn
;
public
Book
(
int
id
,
String
titre
,
String
isbn
){
this
.
id
=
id
;
this
.
titre
=
titre
;
...
...
@@ -28,6 +32,7 @@ public class Book {
this
.
id
=
id
;
}
public
void
setIsbn
(
String
isbn
)
{
this
.
isbn
=
isbn
;
}
...
...
This diff is collapsed.
Click to expand it.
pom.xml
View file @
40779db8
...
...
@@ -33,6 +33,8 @@
<artifactId>
bookmarket-data
</artifactId>
<version>
${project.version}
</version>
</dependency>
</dependencies>
</dependencyManagement>
...
...
@@ -51,6 +53,7 @@
<version>
4.11
</version>
<scope>
test
</scope>
</dependency>
</dependencies>
<build>
...
...
@@ -98,4 +101,14 @@
</plugins>
</pluginManagement>
</build>
<distributionManagement>
<site>
<id>
sites.tncy.eu
</id>
<name>
Sites
</name>
<url>
dav:https://mvn.tncy.eu/sites/net.tncy.mre.validators/validation-constraints
</url>
</site>
</distributionManagement>
</project>
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment