title: org.hibernate.MappingException: Could not determine type for: at table: for columns: [org.hibernate.mapping.Column(plant)
body: <p>I know this question have been asked <a href="https://stackoverflow.com/questions/15849278/org-hibernate-mappingexception-could-not-determine-type-for-java-util-set-at">several  times</a> but, they didn't help me.
  I have the following test:</p>
  
  <pre><code>public class PlantCatalogTests {
      @Autowired
      PlantInventoryEntryRepository plantRepo;
  
      @Test
      public void queryPlantCatalog() {
          assertThat(plantRepo.count(), is(14l)); 
      }
  </code></pre>
  
  <p>and here is <strong>PlantInventoryEntryRepository</strong> </p>
  
  <pre><code>@Repository
  public interface PlantInventoryEntryRepository  extends JpaRepository&lt;PlantInventoryEntry, Long&gt; {}
  </code></pre>
  
  <p>As you see, this repository is based on the class <strong>PlantInventoryEntry</strong></p>
  
  <pre><code>@Entity
  @Data
  public class PlantInventoryEntry {
  
        @Id
        @GeneratedValue
        Long id;
  
        @OneToOne
        PurchaseOrder plant_id;
  
        String name;
        String description;
  
        String price;   
  }
  </code></pre>
  
  <p>PurchaseOrder  is another class, which i have one instance of it as an attribute in my <strong>PlantInventoryEntry</strong> class:</p>
  
  <pre><code>@Entity
  @Data
  public class PurchaseOrder {
        @Id
        @GeneratedValue
        Long id;
  
        List&lt;PlantReservation&gt; reservations;
        PlantInventoryEntry plant;
  
        LocalDate issueDate;
        LocalDate paymentSchedule;
        @Column(precision=8,scale=2)
        BigDecimal total;
  
        @Enumerated(EnumType.STRING)
        POStatus status;
        LocalDate startDate;
        LocalDate endDate;
      }
  </code></pre>
  
  <p>My main problem is that, when i run my test, i face with this error:</p>
  
  <pre><code>org.hibernate.MappingException: Could not determine type for: com.example.models.PlantInventoryEntry, at table: purchase_order, for columns: [org.hibernate.mapping.Column(plant)
  </code></pre>
  
  <p>How can i fix the error??</p>