title: QueryDsl Error eq(null) is not allowed. Use isNull(instead)
body: <p>This is Controller Code</p>
  <pre><code>    @PutMapping
      @PreAuthorize(&quot;hasRole('USER')&quot;)
      @RequestMapping(&quot;/update&quot;)
      public ResponseEntity&lt;?&gt; userUpdate(MemberDto memberDto){
          memberService.userUpdate(memberDto);
          return new ResponseEntity&lt;&gt;(&quot;ok&quot;, HttpStatus.OK);
      }
  </code></pre>
  <p>This is my Member Class code</p>
  <pre><code>@Entity
  @Getter
  @Setter
  @Table(name = &quot;member&quot;)
  @Builder
  @AllArgsConstructor
  @NoArgsConstructor
  public class Member {
  
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      private Long id;
  
      @Column(name = &quot;name&quot;)
      private String name;
  
      private String email;
  
      private String password;
  
      private String providerId;
  
      @Enumerated(EnumType.STRING)
      private MemberRole role;
  
      @Enumerated(EnumType.STRING)
      private AuthProvider authProvider;
  
      private String imageUrl;
  
      //추가
  
      private String phoneNumber;
  
      @CreationTimestamp
      private LocalDateTime createTime;
  
      @UpdateTimestamp
      private LocalDateTime updateTime;
  
  
     
      @JsonIgnore
      @OneToMany(mappedBy = &quot;member&quot;)
      private List&lt;Post&gt; posts = new ArrayList&lt;&gt;();
  
      @JsonIgnore
      @OneToMany(mappedBy = &quot;member&quot;)
      private List&lt;Save&gt; save = new ArrayList&lt;&gt;();
  
  //    @JsonIgnore
  //    @OneToMany(mappedBy = &quot;member&quot;)
  //    private List&lt;Follow&gt; follow = new ArrayList&lt;&gt;();
  
      @JsonIgnore
      @OneToMany(mappedBy = &quot;member&quot;)
      private List&lt;Image&gt; image = new ArrayList&lt;&gt;();
  
  }
  
  </code></pre>
  <p>This is DTO code</p>
  <pre><code>@Data
  @NoArgsConstructor
  public class MemberDto {
  
      private Long id;
  
      private String email;
  
      private String password;
  
      private String name;
  
      private String phoneNumber;
  
      @QueryProjection
      public MemberDto(Long id, String email, String password, String name, String phoneNumber){
          this.id = id;
          this.email = email;
          this.password=password;
          this.name = name;
          this.phoneNumber = phoneNumber;
      }
  }
  </code></pre>
  <p>This is Service Code</p>
  <pre><code>@RequiredArgsConstructor
  @Service
  public class MemberService {
  
      @Autowired
      private MemberRepository memberRepository;
  
      public void userUpdate(MemberDto updateValue)  {
          memberRepository.updateMember(updateValue);
      }
  }
  </code></pre>
  <p>This is Repository(impl) code</p>
  <pre><code>
  @RequiredArgsConstructor
  public class MemberRepositoryImpl implements MemberRepositoryCustom {
  
      private final EntityManager em;
      private final JPAQueryFactory queryFactory;
  
      @Override
      public void updateMember(MemberDto memberDto){
         QMember qMember = QMember.member;
          queryFactory.update(qMember)
                  .where(qMember.id.eq(memberDto.getId()))
                  .set(qMember.email, memberDto.getEmail())
                  .set(qMember.password, memberDto.getPassword())
                  .set(qMember.name, memberDto.getName())
                  .set(qMember.phoneNumber, memberDto.getPhoneNumber())
                  .execute();
      }
  }
  </code></pre>
  <p>And This is my frontend (react)code send as json</p>
  <pre><code>{id: 7, name: '111', email: '111@111.com1', password: '12313', phonenumber: '123123'}
  email: &quot;111@111.com1&quot;
  id: 7
  name: &quot;111&quot;
  password: &quot;12313&quot;
  phonenumber: &quot;123123&quot;
  </code></pre>
  <p>I try to update myDB use member ID As you can see use querydsl with</p>
  <pre><code>.where(qMember.id.eq(memberDto.getId()))
  </code></pre>
  <p>This code in Repository class</p>
  <p>so I expecte nativequery like</p>
  <p>email: &quot;111@111.com1&quot;
  id: 7
  name: &quot;111&quot;
  password: &quot;12313&quot;
  phonenumber: &quot;123123&quot;</p>
  <pre><code>update member(tablename) set name = 111, password = 123123, ..... where id = 7
  </code></pre>
  <p>But querydsl throw Error</p>
  <pre><code>java.lang.IllegalArgumentException: eq(null) is not allowed. Use isNull() instead
  </code></pre>
  <p>I Think my code is something wrong but I can't find it.</p>
  <p>And also chrome console throw error</p>
  <pre><code>error: &quot;Internal Server Error&quot;
  path: &quot;/user/update&quot;
  status: 500
  timestamp: &quot;2021-10-12T21:04:00.658+00:00&quot;
  </code></pre>
  <p>Internal server error so I confident that my backend Code is wrong</p>
  <p>please help me</p>