miaeLKK
V2EX  ›  Java

javax.persistence.Column 怎么校验?

  •  
  •   miaeLKK · Jul 20, 2023 · 1268 views
    This topic created in 1066 days ago, the information mentioned may be changed or developed.

    老系统定时任务三步走,只能在 reader 和 processor 阶段 try-catch ,结果 writer 阶段因为字段标记了 nullable 报错了。现想在 processor 阶段提前校验下,找了半天资料也没见有对 Column 的校验工具,hibernate 里也没看到有封装的工具类,有人知道有这种校验工具吗?没有就手撸反射了?

    1 replies    2023-07-20 17:23:39 +08:00
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2621 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 04:59 · PVG 12:59 · LAX 21:59 · JFK 00:59
    ♥ Do have faith in what you're doing.