title: Problem with reverse engineering a many-to-one unidirectional association with hibernate tools
body: <p><br>
  I'm using Hibernate tools 3.40 in Eclipse (Helios).
  I'm trying to generate POJOs from my DB (MSSQL 2008) with EJB3 style (i.e. JPA2.0 annotations).<br>
  Let's say I have two tables <code>A</code> and <code>B</code> where there is a foreign key from <code>A</code> to <code>B</code>.<br>
  This generates, by default, a POJO for <code>A</code> which has <code>B</code> as a member (its "parent") and a POJO for <code>B</code> which has a <code>Set&lt;A&gt;</code> as a member (its "children").<br>
  What I'd like is to know how I can control the rev-eng so that only one side of the association is created (I have different use cases so basically all three options are important for me).<br>
  I do not want to use hbm.xml files as I'm working with annotations and JPA2.0 but I can specify some metadata on the reverse engineering process to hibernate via hibernae.reveng.xml</p>
  
  <p>I've tried configuring the <code>foreign-key</code> attribute and defining there the <code>exclude=true</code> but that only provided me with a half an answer for one scenario. That generated an <code>A</code> POJO with a bPK int member which is tolerable and understandable <strong>but</strong> the generated POJO of <code>B</code> now does not compile as the <code>one-to-many</code> annotation has an invalid attribute; The <code>mappedby="unresolved"</code> due to the fact that <code>A</code> no longer has a property which hibernate reveng can map back to.</p>
  
  <p>So, I currently cannot create uni-directional associations and I'd appreciate any help.</p>