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

Incorrect join used when where expression has a many property and ends with a foreign key column #164

Closed
rbygrave opened this issue Jul 9, 2014 · 0 comments
Labels
Milestone

Comments

@rbygrave
Copy link
Member

rbygrave commented Jul 9, 2014

Example:

Query<Order> query = Ebean.find(Order.class)
  .where().eq("details.product.id", productId)

"details" is a many property and "product.id" maps to a foreign key column.

For predicates on expressions that contain a 'many property' a separate join should be built for the predicate (separate from a fetch join). These joins have table alias' starting with 'u' rather than fetch joins which have joins starting with 't'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant