Everyone loves unit testing. But testing persistence of entities is a bit different. You are testing a process occurring across multiple layers using different languages. Your tests have side effects (in the sense that rows are being added / modified etc).
I would like to know how you do this. For example, do your tests create a whole new database schema and drop it each time? Do you have to maintain SQL scripts for test schema creation and keep them in step with your production database? Do you even test against the same database product that you use in production? Do you randomly generate your entities' state, or always use the same values? How do you configure your tests to ensure that they are executed against the test database instead of the production one?
There's probably a bunch of important questions I haven't thought of in this area. For the benefit of points-chasers, I will mark the answer that seems to have the least side-effects and be easiest to implement.