# New to hibernate with Visual Paradigm

**URL:** <https://discourse.hibernate.org/t/new-to-hibernate-with-visual-paradigm/3502>\
**Category:** Hibernate ORM\
**Created:** [December 5, 2019, 9:43pm UTC](https://discourse.hibernate.org/t/new-to-hibernate-with-visual-paradigm/3502 "2019-12-05T21:43:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dembe](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/dembe/32/875_2.png) [@Dembe](https://discourse.hibernate.org/u/Dembe)\
**Post date:** [December 5, 2019, 9:43pm UTC](https://discourse.hibernate.org/t/new-to-hibernate-with-visual-paradigm/3502/1 "2019-12-05T21:43:46Z")

</div>

Hello everyone,  
Im having a problem and would be great if you guys knew how to solve it .

I finished my class model and I’m having a problem when I generate Java code (Hibernate).

I have the class “Treinos”( in english Training) and a class called " Exercicios"( in english Exercises). The class “Exercicios” is just a pivot table with the name of the exercises . Since a workout is composed with multiple exercises, I created a association class between the 2 classes.( named “Extreinos”). The problem is that when I generate the code , some classes ask for methods or even classes that don’t exist.

P.e.

Class Training/Treinos

Tries to instantiate an object of an class that doesnt exist, ExTreinosSetCollection

```auto
`public final pt.fitnessdown.uminho.ExTreinosSetCollection exTreinoss = new pt.fitnessdown.uminho.ExTreinosSetCollection(this, _ormAdapter, ORMConstants.KEY_TREINO_EXTREINOSS, ORMConstants.KEY_EXTREINOS_TREINO, ORMConstants.KEY_MUL_ONE_TO_MANY);`

```

Class “Extreino” tries to use an method of “Exercicios” that doesn’t exist:

```auto
exercicios.setExTreinos(this);

```
