Skip to content

Using java annotations instead of scala type aliases does not work #131

Description

@yanns

Using java annotations directly has no effect.
One have to use the scala type aliases.

Ex:

import io.sphere.mongo.generic.annotations.MongoKey
case class Student(
  @MongoKey("_id") id: String
)

does not work.

The following works

import io.sphere.mongo.generic.MongoKey
case class Student(
  @MongoKey("_id") id: String
)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions