Saving a foreign key using entity with only id valorized
<p>If I have two hibernate entities like:</p>

<pre><code>@Entity
class Company {
     @Id
     Integer id;
     String name;
}

@Entity
class Person {
     Integer id;
     String name;
     @ManyToOne
     Company company;
}
</code></pre>

<p>I have an already stored company like <code>Company(id:1, name:"Acme")</code></p>

<p>Can I create a person referencing the company with just its id instead of load the entire record, like:</p>

<pre><code>Session session = SessionFactory.openSession();
Company acme = new Company();
acme.setId(1);
Person person = new Person();
person.setName("Manuel");
person.setCompany(acme);

session.save(person);
</code></pre>

<p>Does it save just the reference, or also update the company with <code>name=null</code>?</p>