Permalink
Browse files

new resource type

  • Loading branch information...
dgkncelik committed Jun 5, 2018
1 parent 57b0715 commit fcd13225ba24d7a8c4a460381f413580d16b7f55
View

This file was deleted.

Oops, something went wrong.
View

This file was deleted.

Oops, something went wrong.
View

This file was deleted.

Oops, something went wrong.
View
@@ -15,7 +15,7 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.8.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
<relativePath/> <!-- lookup parent from reposi/otory -->
</parent>
<properties>
@@ -3,6 +3,7 @@
import com.fasterxml.jackson.annotation.*;
import edu.itu.cavabunga.core.entity.participant.Group;
import edu.itu.cavabunga.core.entity.participant.Resource;
import edu.itu.cavabunga.core.entity.participant.User;
import lombok.Data;
import org.hibernate.annotations.DiscriminatorOptions;
@@ -24,6 +25,7 @@
@JsonSubTypes({
@JsonSubTypes.Type(value = User.class, name = "User"),
@JsonSubTypes.Type(value = Group.class, name = "Group"),
@JsonSubTypes.Type(value = Resource.class, name = "Resource"),
})
@Data
public abstract class Participant {
@@ -12,7 +12,11 @@ public Participant create(){
public Participant create(){
return new Group();
}
};
},
Resource {
public Participant create(){ return new Resource(); }
}
;
public Participant create() { return null; }
}
@@ -0,0 +1,6 @@
package edu.itu.cavabunga.core.entity.participant;
import edu.itu.cavabunga.core.entity.Participant;
public class Resource extends Participant {
}

0 comments on commit fcd1322

Please sign in to comment.