Question: I'm experiencing a very slow startup of gvim with tex files and the latex-suite plugin. For example, opening [this tex file](https://bitbucket.org/andrenarchy/funcall/raw/25d83535b4839ae1598a620b4cb7315a467ccc4b/funcall.tex) takes 7 seconds. A minimal .vimrc file only contains the following line:

```
filetype plugin on

```

My .vim folder only contains the [latex-suite plugin](http://vim-latex.sourceforge.net/index.php?subject=download&title=Download) (snapshot 2013-01-16). I suspect the folding functionality in latex-suite but I'm not sure how to track this down properly and fix it. I'm running gvim 7.3 on Ubuntu 12.10.

Does anybody know how to fix this slow startup?

Answer: 
The reason for that error lies in the fact that you try to map a Set of plain Objects. Object is not a JPA-entity and therefore it cannot be mapped to a relational type.

You'll need to create an entity named Occurence and map it the way you did it with the Set of Objects.
I think the problem is here mappedBy = "pk.chemicalStructure"
Check that you have a ManyToOne relation in this class like:

```
@ManyToOne
@JoinColumn(name = "chemicalstructure_id", nullable = false)
@ForeignKey(name = "fk_chemicalstructure_id")
private Occurence occurence;

```

then mappedBy = "occurence"

The error says that this bi directional relation is missing.