VOOZH about

URL: https://forum.wordreference.com/threads/provider-defaults.320650/

⇱ provider defaults... | WordReference Forums


Menu


Install the app
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

provider defaults...

GusVin

Member
Portuguese
Could someone explain, in other words, the bold part of the sentence below?

"Also shown is a second annotation that declares the name of the table in the database schema this persistent class is mapped to. If you omit this information, the Java Persistence API (JPA) provider defaults to the unqualified class name (just as Hibernate will if you omit the table name in an XML mapping file)."

thanks in advance...

best regards..
Blimey. Well as no one else has had a bash at this, I'll do my possible. Please remember that I have no idea what any of this means so I'm flying blind somewhat...

I'm hoping that the key word is 'default'. In this context, it means that 'the Java Persistence API (JPA) provider' (whatever that is) defaults - ie returns to its original or fallback state - 'to the unqualified class name'.

Probably you already knew that...
"Also shown is a second annotation that declares the name of the table in the database schema this persistent class is mapped to. If you omit this information, the Java Persistence API (JPA) provider defaults to the unqualified class name (just as Hibernate will if you omit the table name in an XML mapping file)."

Winklepicker has deduced well.

Java has an application program interface that will use the class type if it is given. If no class type, such as persistent, is provided, the API will assume that the class is unqualified.

The implication is that you had damned well better use that table!
Back
Top Bottom