Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Javaで持続性ユニットの名前を取得するにはどうすればよいですか? 多くのユニットを含む persistence.xml があるため、EntityManager の作成に使用するユニットを制御したいと考えています。
またはのような方法がありますgetPersistenceNameかsmth?しばらく検索しましたが、有用なものは見つかりませんでした。
getPersistenceName
smth
このスレッドを確認してください: Finding the current persistence unit for the current EntityManagerFactory