Gavin King (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiNzNjNjgyNGI1...
) / Improvement (
https://hibernate.atlassian.net/browse/HHH-16646?atlOrigin=eyJpIjoiNzNjNj...
) HHH-16646 (
https://hibernate.atlassian.net/browse/HHH-16646?atlOrigin=eyJpIjoiNzNjNj...
) add typesafe convenience methods to Configuration (
https://hibernate.atlassian.net/browse/HHH-16646?atlOrigin=eyJpIjoiNzNjNj...
)
Issue Type: Improvement Assignee: Unassigned Components: hibernate-core Created:
19/May/2023 13:55 PM Priority: Major Reporter: Gavin King (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
We can simplify the getting started experience to:
var sessionFactory =
new Configuration()
.addAnnotatedClasses(Book.class, Author.class)
// PostgreSQL
.setJdbcUrl( "jdbc:postgresql: //localhost/example" )
// Credentials
.setCredentials(user, password)
// Automatic schema export
.setSchemaExportAction(Action.CREATE)
// SQL statement logging, formatting, highlighting
.showSql( true , true , true )
// Create a new SessionFactory
.buildSessionFactory();
(
https://hibernate.atlassian.net/browse/HHH-16646#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16646#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100225- sha1:9dd72a2 )