BooelanObservable is just a class with a boolean inside. (Call me silly).
DiaSetmana is an entity that has this BooleanObservable inside. And the two things I did wrong:
instanciate BooleanObservable without using the import statement so in the declaration looked like this:
- seleccionat = new (persistencia.BooleanObservable());
- and I had to change it to seleccionat = new (cat.tactictic.servidorTerrats.persistencia.BooleanObservable());
- it might have been declared using the import:
seleccionat = new BooleanObservable();
didn’t use embbeded in jpa declaration
Nowadays, I have updated diasetmana to use the import statement and I have inserted the embedded and embeddable inside the mapping file. And the error comes just starting the server: org.hibernate.tool.schema.spi.CommandAcceptanceException: Error executing DDL “alter table DiaSetmana add column valorBoolea boolean not null” via JDBC Statement
Caused by: org.postgresql.util.PSQLException: ERROR: column “valorboolea” contains null values
So is there a way to arrange this? Or the solution is the replication of the database through a program where the two definitions work together? The older to read the entities and the newer to insert the values into a new database?
Thank you for reading it,