jpql « Column « JPA Q&A





1. persist a 1 column table using JPA    stackoverflow.com

I've got a table with only one column. It's an Id How can I persist it with JPA? I've tried a entityManager.persist(new OneColumnTable()); and it throws a PersistenceException

Caused by: javax.persistence.PersistenceException: Exception [EclipseLink-6023] (Eclipse Persistence ...

2. JPA: How to persist column with SHA1 encryption ?    stackoverflow.com

I'm fairly new to JPA (and JPQL by extension). Hopefully, someone will be able to enlighten me with this problem. The query I'm trying to execute ...

String query = "select u from ...