question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@id annotation doesn't work after recompilation

See original GitHub issue

I have an issue with the field annotated with @id.

If the case class declaration goes after the class that calls toCC, the id field is not filled in. If I move the case class to the beginning of the file, everything works well.

It is not a big issue when all your code is in the single file, but when the case classes are in a separate file, the id is filled depending on the order the sources are compiled - sometimes it works and after the gradle clean it doesn’t.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
mpollmeiercommented, Sep 10, 2018

I’d say you have at least these alternatives:

  1. store them in a separate (indexed) property. That would be my preference, since it works with all graph dbs.
  2. only use the case class marshalling for retrieving them from the graph, and write them using the graph api.
0reactions
voroninpcommented, Sep 10, 2018

@mpollmeier Unfortunately, not an option for us. =( We get ids from external system and they are UUIDs

Read more comments on GitHub >

github_iconTop Results From Across the Web

Annotation @SequenceGenerator and compilation error
i am just running into this issue when migrating from 1.6 to 1.8. The problem here was that @javax.
Read more >
Incremental annotation processor lists many originating ...
Class dependency analysis for incremental compilation took 0.013 secs. Full recompilation is required because the generated type 'test.
Read more >
Improve code inspection with annotations
Learn how annotations allow you to provide hints to code inspections tools like Lint, to help detect these more subtle code problems.
Read more >
An Introduction to Annotations and Annotation Processing ...
Annotations provide information to a program at compile time or at runtime based on which the program can take further action.
Read more >
Annotation processing doesn't work in Maven projects
The issue is with annotation processing inside the IDE (the new feature of 6.9) not at compilation time. When i use Lombok for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found