You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have 4 objects which associated with ManyToOne like shared below.
Exception thrown for this query.
query -> eventDeifiniton.eventA.eventB.eventC.name==test.
Exception -> java.lang.NullPointerException: Cannot invoke "com.querydsl.core.types.Path.getType()" because "path" is null
Exception fixed by adding QueryInit to EventDefinition.java.
I have 4 objects which associated with ManyToOne like shared below.
Exception thrown for this query.
query -> eventDeifiniton.eventA.eventB.eventC.name==test.
Exception -> java.lang.NullPointerException: Cannot invoke "com.querydsl.core.types.Path.getType()" because "path" is null
Exception fixed by adding QueryInit to EventDefinition.java.
@QueryInit("eventB.eventC")
private EventA eventA;
Do we have anothor way to fix this exception without @QueryInit?
--------------Objects----------------
`public class EventDefinition extends BaseEntity {
}`
`public class EventA extends BaseEntity {
}`
`public class EventB extends BaseEntity {
}`
public class EventC extends BaseEntity<UUID> { private String name; }
The text was updated successfully, but these errors were encountered: