Thanks to Jherico I found out how to do that:
((Column) sessionFactoryBean.getConfiguration().getClassMapping(Person.class.getName())
.getProperty("myProperty").getColumnIterator().next()).getName();
More Related Contents:
- Hibernate show real SQL [duplicate]
- How to print a query string with parameter values when using Hibernate
- How to get SQL from Hibernate Criteria API (*not* for logging)
- Hibernate Union alternatives
- what is the use of annotations @Id and @GeneratedValue(strategy = GenerationType.IDENTITY)? Why the generationtype is identity?
- How can you call custom database functions with Hibernate?
- Hibernate Group by Criteria Object
- How to prevent SQL Injection with JPA and Hibernate?
- Hibernate Criteria API: get n random rows
- How to escape colon `:` within a native SQL query in Hibernate?
- Hibernate Issue : Foreign key must have same number of columns as referenced primary key
- Difference between FetchType LAZY and EAGER in Java Persistence API?
- Why is Hibernate Open Session in View considered a bad practice?
- Wrong ordering in generated table in jpa
- In which case do you use the JPA @JoinTable annotation?
- Hibernate – A collection with cascade=”all-delete-orphan” was no longer referenced by the owning entity instance
- JPA: Implementing Model Hierarchy – @MappedSuperclass vs. @Inheritance
- Hibernate HQL Query : How to set a Collection as a named parameter of a Query?
- How to escape reserved words in Hibernate’s HQL
- Specifying an Index (Non-Unique Key) Using JPA
- Hibernate: Create Mysql InnoDB tables instead of MyISAM
- Can I have H2 autocreate a schema in an in-memory database?
- How does Hibernate detect dirty state of an entity object?
- Configure hibernate to connect to database via JNDI Datasource
- compatibility of spring 4.0.0 with hibernate 4.30 [duplicate]
- Hibernate throws strange error: Class is not mapped
- Why HibernateTemplate isn’t recommended? [duplicate]
- No data type for node: org.hibernate.hql.internal.ast.tree.IdentNode HQL
- Spring, JPA, and Hibernate – how to increment a counter without concurrency issues
- Getting Hibernate and SQL Server to play nice with VARCHAR and NVARCHAR