//this entity is missing a foreign key to for the required to-one relationship to LaborUnionLocal; added below
Property laborUnionClassLaborUnionLocalID = laborUnionClass.addLongProperty("laborUnionLocalID").notNull().getProperty();
//notice the updated method calls specifying the name of the relationship property you'll see in your generated class. These methods always take three arguments: the entity object you're creating the relationship to; the foreign key property involved in the association, and a string naming it whatever you want. Typically, you're going to create one foreign key property, and use it when creating two relationships: the to-many, and the to-one. Hope that makes sense.
laborUnion.addToMany(laborUnionLocal, laborUnionId, "laborUnionLocals"); //looks good
laborUnionLocal.addToOne(laborUnion, laborUnionId, "laborUnion"); //good
//wrong; you need to use the newly added laborUnionClassLaborUnionLocalID property here, like this (and updated with the better api)
laborUnionLocal.addToMany(laborUnionClass, laborUnionId, "laborUnionClasses");
laborUnionLocal.addToMany(laborUnionClass, laborUnionClassLaborUnionLocalID, "laborUnionClasses");
//wrong; same reasons as previous, do this instead:
laborUnionClass.addToOne(laborUnionLocal, laborUnionId);
laborUnionClass.addToOne(laborUnionLocal, laborUnionClassLaborUnionLocalID, "laborUnionLocal");