Developer

Getting a verified user on Github

When you create a new file directly on Github and push it to your branch, you will see in the commit, that this was done by an verified user. Alt text

If you push it from your command line, it normally looks like this:

Alt text

P.S. if you followed the tutorial, and something went wrong, it will look like this:
Alt text

But let’s start from the beginning!
First of all: Github gives you a great Readme for this, that’s why I link it here were needed.

Using MongoRepository with more than one sorting with Spring Boot

Sometimes you need a List of the Database to be sorted by more than one column.

If you connect to your database with the org.springframework.data.mongodb.repository.MongoRepository you can only give org.springframework.data.domain.Sort to a search method.

This is how the Repository class looks like:

@Repository
public interface TestRepository extends MongoRepository<Test, Long> {
  List<Score> findAllByTestName(String testName, Sort sort);
}

test has some column “abc” and some column “def” and some “ghi” …. so to add the order do in th calling class something like: