menu

Elide

Elide is a java library built to make it easy to expose JPA beans as either a JSON API or a GraphQL webservice

Channels
Team

Elide watercooler

April 25, 2019 at 5:05pm

May 9, 2019 at 6:00pm

June 24, 2019 at 3:04pm
https://github.com/yahoo/elide/pull/814/files#diff-3717173be21abf065cfac27e5ebb491e I just notice that primitive types are not supported in this patch, do we want to make another patch for it or we should suggest users to use Object class?
Edited
  • reply
  • like

November 19, 2019 at 7:39am
Hi guys, we are evaluating this project and crnk, what you would tell someone to convince him to choose elide and not crnk ? Which are the pro and cons ?
  • reply
  • like

November 21, 2019 at 6:45pm
Hi guys, we are evaluating this project and crnk, what you would tell someone to convince him to choose elide and not crnk ? Which are the pro and cons ?
I don't use CRNK so that is an important caveat.
  • reply
  • like
As far as JSON-API, a lot of the features in CRNK that are experimental have been in Elide for a long time.
  • reply
  • like
Elide has been used in production for 5 years in a number of companies and that usage/community continues to grow.
  • reply
  • like
Elide is also backed by a major tech company - and I can tell you that we have big plans down the road for some really interesting features
  • reply
  • like
Probably the most notable difference right now is that Elide also supports graphQL
Edited
  • reply
  • like
I've often thought about writing something that compares and contrasts the two and explains why we support both.
  • reply
  • like
They both have their unique strengths.
  • reply
  • like
I don't want to discourage you from using CRNK though. As I said before, I don't use it - and I'm probably not the best person to give an accurate comparison of the frameworks.
  • reply
  • like
We are actively working on Elide 5 right now
  • reply
  • like
One of the big changes is that in addition to CRUD, we are going to allow Elide to do analytic style queries against any SQL database.
  • reply
  • like
And we plan on leveraging the CRUD and analytics capabilities to pair Elide with some really powerful UI experiences that will also be open source.
  • reply
  • like
If you do go with CRNK though, I would love to know what you liked better
  • reply
  • like

November 28, 2019 at 11:41am
thank you for your reply, can you please tell me which are the feature are sperimental in crnk and elide has from long time? Thank you again
  • reply
  • like

December 2, 2019 at 3:58pm
Bulk edits, hierarchical paths. I don't remember the others. You can search the docs for experimental.
  • reply
  • like

April 3, 2020 at 10:59am
I get the hooks like not running. I am using the elide-spring-boot example. Can someone help me.
@Include(rootLevel = true, type = "group")
@ReadPermission(expression = "user is a superuser")
@Entity
public class ArtifactGroup {
@Id
private String name = "";
...
@OnReadPreSecurity(value = "name")
public void onRead(RequestScope scope) {
//Do something
throw new IllegalArgumentException("OnReadPreSecurity");
}
@OnReadPreCommit(value = "name")
public void onCommit(RequestScope scope) {
//Do something
throw new IllegalArgumentException("OnReadPreCommit");
}
}
It seems to me that the ReadPermission will be at first executed otherwise specified in the documentation "A lifecycle hook (OnReadPreSecurity) that executes on a read action before the security checks have run."
Edited
  • reply
  • like

April 4, 2020 at 4:35am
My guess is that Elide (because of JSON-API) sees name as "id" instead of "name".
  • reply
  • like
One other thing to consider is that the ID field is always visible unless you can't see the object at all.
  • reply
  • like
JSON-API requires the ID in all payload responses.
  • reply
  • like
Try putting the annotation on an attribute or relationship (that is not the ID).
  • reply
  • like