Skip to content

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

@yanns

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
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions