Skip to content

feat(scalasdk): codegen for ValueEntityHandler.#469

Merged
raboof merged 1 commit intomainfrom
ray/value-entity-handler-codegen
Sep 23, 2021
Merged

feat(scalasdk): codegen for ValueEntityHandler.#469
raboof merged 1 commit intomainfrom
ray/value-entity-handler-codegen

Conversation

@RayRoestenburg
Copy link
Copy Markdown
Contributor

No description provided.

@RayRoestenburg RayRoestenburg force-pushed the ray/value-entity-handler-codegen branch from de9716e to 9ae18cc Compare September 22, 2021 18:22
@RayRoestenburg
Copy link
Copy Markdown
Contributor Author

RayRoestenburg commented Sep 22, 2021

It will fail scripted, since it needs the actual entity implementation (If I've translated this correctly of course). Also getting error:
not found: type ShoppingCartViewServiceImpl
Fixed now.

@RayRoestenburg RayRoestenburg force-pushed the ray/value-entity-handler-codegen branch 4 times, most recently from 736daa2 to d40a9de Compare September 23, 2021 09:17
Copy link
Copy Markdown
Contributor

@raboof raboof left a comment

Choose a reason for hiding this comment

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

some conflicts, probably because the squash-and-merge of #471? so probably a matter of rebasing

extends Entity(fqn, entityType) {
val abstractEntityName = "Abstract" + fqn.name

val handlerName = fqn.name + "Handler"
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.

(I wonder if it would be nicer to keep them in fqn form here, but that's not for this PR)

@RayRoestenburg RayRoestenburg force-pushed the ray/value-entity-handler-codegen branch from d40a9de to faa1383 Compare September 23, 2021 10:17
@raboof raboof merged commit 833ac09 into main Sep 23, 2021
@raboof raboof deleted the ray/value-entity-handler-codegen branch September 23, 2021 10:43
Copy link
Copy Markdown
Contributor

@patriknw patriknw left a comment

Choose a reason for hiding this comment

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

looking good, but one thing could be wrong...

"com.akkaserverless.scalasdk.valueentity.CommandContext",
"com.akkaserverless.scalasdk.valueentity.ValueEntity",
"com.akkaserverless.scalasdk.impl.valueentity.ValueEntityHandler",
"com.akkaserverless.scalasdk.impl.valueentity.ValueEntityHandler.CommandHandlerNotFound"),
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.

This might be wrong. In View and Actions we used the corresponding javasdk exception instead of defining a new in scalasdk. It's not something seen by the user. In that we we don't need to catch-convert-throw.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants