Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spring-Data Not Supported Option<?> #122

Open
BornToRain opened this issue Jan 12, 2018 · 3 comments
Open

Spring-Data Not Supported Option<?> #122

BornToRain opened this issue Jan 12, 2018 · 3 comments

Comments

@BornToRain
Copy link

BornToRain commented Jan 12, 2018

Spring-Boot:1.5.9.RELASE

Vavr、Vavr-Jackson:0.9.1

@Data
public class User
{
  private String id;
  private Option<String> username;
}

public interface UserRepository extends MongoRepository<User, String>
{
  //can find
  Option<User> findById(String id);
  
  //can't find
  Option<User> findByUsername(Option<String> username);
}
@BornToRain
Copy link
Author

ObjectMapper had registered VavrModule

@ruslansennov
Copy link
Member

could you provide a repository with a small reproducer with this problem?

@BornToRain
Copy link
Author

spring-boot-starter-data-mongodb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants