I’m not sure what your exact use case with this temporary data is, but if you are referring data that you do not want to have in your database, you should use non-persistable entities. These objects are kept in-memory only, and will never be written to the database.