Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 3.0.5
Name and version of the database you are using: MS Sql Server 2003
We have a situation where we DO NOT want any foreign keys to be included into the mapping files. I was trying to use a customized reverse engineering strategy to get around this problem by returning a 'null' list in getForeignKeys().
public class CustomReverseEngineeringStrategy extends DelegatingReverseEngineeringStrategy
{
/**
* Default constructor
* @param arg0
*/
public CustomReverseEngineeringStrategy(ReverseEngineeringStrategy arg0) {
super(arg0);
}
/* (non-Javadoc)
* @see org.hibernate.cfg.reveng.DelegatingReverseEngineeringStrategy#getForeignKeys(org.hibernate.cfg.reveng.TableIdentifier)
*/
@Override
public List getForeignKeys(TableIdentifier arg0)
{
return null;
}