Tenho uma coleção de usuários
@Id
@GeneratedValue
private Long id;
private Collection<Usuario> entrevistadores;
porem na ora que vou gerar minhas classes usando o hibernate da o seguinte erro:
Exception in thread "main" org.hibernate.MappingException: Could not determine type for: java.util.Collection, at table: GrupoEntrevistador, for columns: [org.hibernate.mapping.Column(entrevistadores)]
at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:292)
at org.hibernate.mapping.Column.getSqlTypeCode(Column.java:161)
at org.hibernate.mapping.Column.getSqlType(Column.java:205)
at org.hibernate.mapping.Table.sqlCreateString(Table.java:420)
at org.hibernate.cfg.Configuration.generateSchemaCreationScript(Configuration.java:881)
at org.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:129)
at org.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:91)
at ws.futuranet.infra.GerarTabelas.main(GerarTabelas.java:12)
Alguem pode me ajudar ?!