sai-pullabhotla / catatumbo

JPA like Persistence Framework for Google Cloud Datastore and Cloud Firestore
http://catatumbo.io
Apache License 2.0
51 stars 20 forks source link

Easy way to create keys. #198

Open halldors opened 6 years ago

halldors commented 6 years ago

Hi, I need an easy way to create keys. I'm creating a contains query like this

SELECT __key__ FROM MyEntity WHERE __key__ = @key

However I need to get the Datastore via reflection to create the key. Would be nice to be able to create it easily.