Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entity without ID? #410

Open
cwrau opened this issue Oct 20, 2018 · 4 comments
Open

Entity without ID? #410

cwrau opened this issue Oct 20, 2018 · 4 comments

Comments

@cwrau
Copy link

cwrau commented Oct 20, 2018

I have various event tables, neither has an ID, as they don't need one.
But I can't create an EventClass: Entity, it needs an ID type and value.

Is this even currently possible?

@Tapac
Copy link
Contributor

Tapac commented Oct 26, 2018

A guess you just don't need to use an Entity, because the main idea behind it is to have something that could be referenced and that's why Entity required to have unique id.

You can create your own data class and create it from ResultRow, a similar approach is represented in this article.

@cwrau
Copy link
Author

cwrau commented Oct 26, 2018

But then it doesn't have methods like 'all'

@Tapac
Copy link
Contributor

Tapac commented Jan 17, 2019

I'll link your issue with the old one #24

@Tapac
Copy link
Contributor

Tapac commented Jan 17, 2019

Duplicate of #24

@Tapac Tapac marked this as a duplicate of #24 Jan 17, 2019
@Tapac Tapac added the duplicate label Dec 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants