eggoxygen's recent timeline updates
eggoxygen

eggoxygen

V2EX member #562145, joined on 2021-11-17 23:51:38 +08:00
eggoxygen's recent replies
Apr 3
Replied to a topic by aikilan Codex Codex 双倍额度今天结束了?
Team 的额度砍了,Plus 没变,根据官方文档现在只有 Plus 一半。https://developers.openai.com/codex/pricing?codex-usage-limits=business&codex-credit-costs=plus-pro-enterprise-edu-legacy
根据 ORM 框架不同有不同解决方案吧。
比如 JPA 的 Specification / QueryDsl 。
定义好需要查询的 Condition / Criteria 。
查询时传入即可。
不知道是不是 JPA 的坑,在我具体的场景当中对于这种查的我统一会写一个方法。并且标记事务为 readonly 。这样就不会出现这种情况。而且我猜你 findByName 当中的 user 对象已经是一个准备新增的对象并且有值了。有大佬也可以讲讲这种情况如何可以避免。之前用的都是 Mybatis ,感觉 JPA 坑有点点多。
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3239 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 13:16 · PVG 21:16 · LAX 06:16 · JFK 09:16
♥ Do have faith in what you're doing.