Skip to content

feat(codegen-java): 'external' value entity state types#620

Merged
raboof merged 3 commits intolightbend:mainfrom
raboof:support-relative-value-entity-state-type
Oct 14, 2021
Merged

feat(codegen-java): 'external' value entity state types#620
raboof merged 3 commits intolightbend:mainfrom
raboof:support-relative-value-entity-state-type

Conversation

@raboof
Copy link
Copy Markdown
Contributor

@raboof raboof commented Oct 13, 2021

Part of #614

This does the 'java' 'value entity' part of this task. I'll continue doing "more of the same" for eventsourced and replicated entities, and for the Scala side, but this should be mergable in-between as well.

@raboof raboof force-pushed the support-relative-value-entity-state-type branch from 2a2745a to 8aedc08 Compare October 13, 2021 13:34
@raboof raboof marked this pull request as ready for review October 13, 2021 13:35
option java_outer_classname = "UserrDomain";

option (akkaserverless.file).value_entity = {
name: "Userr"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I plan to use this as a testcase for the fix for #437, changing it back to User then ;)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yarr

option java_outer_classname = "UserrDomain";

option (akkaserverless.file).value_entity = {
name: "Userr"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yarr

log: Log,
fqnExtractor: FullyQualifiedNameExtractor): FullyQualifiedName = {
// TODO this is used in the java tck as ValueEntity state type - I'm not sure we want to
// support this? In that case we should probably support all primitives?
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AnySupport does support primitives, wrapping them in an protobuf Any I think, but I also doubt we should support that. Another of those flexibilities just making what you actually can/should do hard to understand.

@raboof raboof merged commit ea7e4d1 into lightbend:main Oct 14, 2021
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

Successfully merging this pull request may close these issues.

2 participants