Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [dali-dev] default schema in orm.xml?

Hi Tom,

I did a little more research on this and it turns out that there were a couple of bugs filed against TopLink Essentials regarding this issue.

https://glassfish.dev.java.net/issues/show_bug.cgi?id=2267
https://glassfish.dev.java.net/issues/show_bug.cgi?id=2647

From what I've been told, this issue should be fixed in Glassfish V2, so I would give that a try.

Open JPA may have a similar issue. Regarding the vendor specific property, I would say that using the orm.xml file would be the preferred method for setting the schema default. For the case of multiple Mapping Files, the persistence-unit-defaults should only be defined in one the files. It is invalid to define the default in more than one orm.xml.

Neil



Tom Mutdosch wrote:

Hi Neil,

Awhile back we were talking about the best way to set the default schema and you mentioned: "The persistence-unit-default schema setting defines the schema to be used when it is not otherwise specified for the entire persistence unit. I don't think that setting the schema through the vendor specific properties is the way to go. I'll try to confirm that orm.xml method does indeed work as expected on TopLink Essentials."

Did you (or anyone else on the list) ever get a chance to verify this? My thoughts were the same as yours, but I said that this was not working on OpenJPA. I asked on one of the mailing list and someone responded that they thought using the provider-specific property was indeed the way to go, because what if you you had multiple orm.xml files: which schema definition would be the right default one?

So I'm still a bit unsure - it still seems to me that using the provider-specific properties is a bit limiting, since that ties you to a specific platform, and the default schema really is not platform-specific at all.

-Tom


_______________________________________________
dali-dev mailing list
dali-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dali-dev



Back to the top