In class A, in the JavaDoc above your getter (well that's where I usually put my mappings anyway):
Code:
/**
* @hibernate.id column="uid" generator-class="assigned" type="long"
*/
public Long getUid() { ... }
/**
* @hibernate.one-to-one class="B" constrained="false" cascade="none" outer-join="auto"
*/
public B getPartner() { ... }
In class B:
Code:
/**
* @hibernate.id column="uid" generator-class="assigned" type="long"
*/
public Long getUid() { ... }
/**
* @hibernate.one-to-one class="A" constrained="true" cascade="none" outer-join="auto"
*/
public A getPartner() { ... }
Depending upon how you have your configuration set-up, you may well need the full package declared for your classes in those mappings - if hibernatedoclet moans that it can't find the class, that's the problem.
Just as a warning, you should read the document on IDs, as using assigned identifiers changes how you save and update your entities -
http://www.hibernate.org/hib_docs/reference/en/html/mapping.html#mapping-declaration-id-assigned.