Object « Schema « JPA Q&A





1. one class (not object) in multiple schemas    forum.hibernate.org

hi, i guess this will qualify as a rather esoteric question. never mind ;-) i have a class which i want to save into different schemas, depending on the module my class is being used in. let me explain in more detail: i have a class C which is defined in module M0. i have also module M1 which defines S1 ...

2. Schema value will not work when inserting new objects    forum.hibernate.org

I'm new to Hibernate and i'm trying to save a new object into the database (DB2) per session.save(obj); i have to use the schema "ADLER" (the table is called "ADLER.VORGANG"), the userid is db2inst1. When selecting objects from the database and updating these objects, everything works fine. BUT when i create a new object and try to save it, i get ...

4. Objects in schema X with references to objects in schema Y    forum.hibernate.org

I have a User schema for single sign on and various other schema for different systems. I want to (without my code changing to deal with it) have the users in X and say an order in Y with the POJO holding a User. I could build this to have the ID for the user and go get it, but I ...

5. Mapping a single object to multiple schemas    forum.hibernate.org

I didn't see this topic covered in the documentation so I don't think its possible, but I thought I would ask anyway before telling my customer its not possible. Is it possible to construct hbm files sucha that you can map an Object, Car for instance, to two different schemas with two different CAR tables so that when a user queries ...

7. Mapping of MySQL schema to java objects    forum.hibernate.org

Hi, I have a table in SQLServer 2005 with a column ABC. The data type of ABC is bit(1). When I use hibernate to generate the hbm.xml files and models/DAOs, it maps the bit(1) to boolean and everything works fine. Now, when I replace SQLServer 2005 with MySQL, it maps the bit(1) to java.lang.Object and all hell breaks lose :( My ...

8. JPA - Multiple Persistence Units w/ similar schema objects    forum.hibernate.org

So I've got one of those "I wish they didn't do it that way" types of problems. Basically, we have 8 nearly identical systems, named a little different but for the most part all of the objects exist in each. I reverse engineered all of the objects using hibernate and annotated them w/ JPA annotations. I am running the app on ...