Forums Register Login

Using Hibernate to look up table metadata?

+Pie Number of slices to send: Send
Is there a way I can use hibernate to get table metadata? I need to find the max size of a varchar field in the database.
+Pie Number of slices to send: Send
Typically this isn't the sort of thing the Hibernate developers imagined you would need to do. Hibernate is supposed to be an abstraction layer between you and the mechanics of the database after all. But you can query the catalog directly via a SQL query. There are also classes in the the API to get at meta data (which Hiebrnate tools do to perform DDL). The hbm2ddl tool for example.
+Pie Number of slices to send: Send
Thanks for the link. I need it to do string lenght validation.
World domination requires a hollowed out volcano with good submarine access. Tiny ads are optional.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 5264 times.
Similar Threads
i m new to hibernate
Hibernate
Loading the metadata of the table
Hibernate equivalent of MetaData
Hibernate: adding underscore to attibute names
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 09:27:54.