Skip to content

Instantly share code, notes, and snippets.

@timjonesdev
Last active August 20, 2019 21:53
Show Gist options
  • Select an option

  • Save timjonesdev/325429a5c1c14f2906e422857ae9e7ef to your computer and use it in GitHub Desktop.

Select an option

Save timjonesdev/325429a5c1c14f2906e422857ae9e7ef to your computer and use it in GitHub Desktop.
Player Model for Reactive Mongo Example
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Document;
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Document(collection = "players")
public class Player {
private String name;
private Double score;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment