#1256 - Query where many isNotEmpty() ... on ManyToMany with SoftDelete produces incorrect SQL (Part 2)

This commit is contained in:
Rob Bygrave
2018-02-13 14:52:18 +13:00
parent 17a54e3804
commit a95fd063ae
5 changed files with 44 additions and 14 deletions
@@ -11,6 +11,11 @@ public class DeployPropertyParserTest extends BaseTestCase {
private final BeanDescriptor<Customer> descriptor = getBeanDescriptor(Customer.class);
@Test
public void from_prefix_expect_unchanged() {
assertThat(parser().parse("(select x from status join status)")).isEqualTo("(select x from status join status)");
}
@Test
public void depth0_path() {
assertThat(parser().parse("pre status post")).isEqualTo("pre ${}status post");
@@ -18,6 +18,16 @@ public class MsManyA {
@SoftDelete
boolean deleted;
/**
* Name clash with M2M intersection table name.
*/
boolean ms_many_a_many_b;
/**
* Name clash with other side table name.
*/
boolean ms_many_b;
@ManyToMany
List<MsManyB> manybs;