1. Using Hibernate to look up table metadata? coderanch.com |
2. hibernate 3 - get table name from metadata coderanch.comHi, I can't get table name from a mapped class in this way using Hibernate3: Session session = InitSessionFactory. getInstance( ).getCurrentSession(); BasicEntityProperty classMetadata = (BasicEntityPropert y)session. getClassMetadata (employee.class) ; classMetadata. getTableName( ); with hibernate2 I did it with this three simple lines of code. Now I can't find nothing simple like that, is really hard get the table name from a ... |
3. Checking table metadata (JNDI hibernate service) forum.hibernate.orgHibernate version:2.1.8 JBoss: 3.2.7 Hi, I've been searching the forum looking for a way to check the metadata described in the XML mappings just for validations. I need to check if a field is nullable, its max size, etc. So far I've found how to get the metadata using the Configuration object, but since I'm creating the SessionFactory as a JBoss ... |
4. Accessing real Table-Metadata (database-independent) forum.hibernate.orgWe're currently migrating to hibernate. The software we're developing already has a (JDBC-)feature, where a user can browse through the database and take a look at the Metadata (before anybody asks, we need this feature for debugging- and migration-processes only). We're implementing our software in very different enviroments with databases of various manufactures. Because hibernates understands several dialects, I was wondering ... |