浏览代码

Add LocationDTO

Johan Östling 10 年前
父节点
当前提交
eddccd4559

+ 0
- 26
src/main/java/se/citerus/dddsample/interfaces/booking/facade/dto/LocationDTO.java 查看文件

@@ -1,26 +0,0 @@
1
-package se.citerus.dddsample.interfaces.booking.facade.dto;
2
-
3
-import java.io.Serializable;
4
-
5
-/**
6
- * Location DTO.
7
- */
8
-public class LocationDTO implements Serializable {
9
-
10
-  private final String unLocode;
11
-  private final String name;
12
-
13
-  public LocationDTO(String unLocode, String name) {
14
-    this.unLocode = unLocode;
15
-    this.name = name;
16
-  }
17
-
18
-  public String getUnLocode() {
19
-    return unLocode;
20
-  }
21
-
22
-  public String getName() {
23
-    return name;
24
-  }
25
-  
26
-}

+ 6
- 0
src/main/scala/se/citerus/dddsample/interfaces/booking/facade/dto/LocationDTO.scala 查看文件

@@ -0,0 +1,6 @@
1
+package se.citerus.dddsample.interfaces.booking.facade.dto
2
+
3
+import scala.beans.BeanProperty
4
+
5
+case class LocationDTO(@BeanProperty unLocode: String, @BeanProperty name: String)
6
+