Book a Demo

Author Topic: Java Forward Engeneering  (Read 2390 times)

ndgroote

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Java Forward Engeneering
« on: March 18, 2005, 06:38:18 am »
Hi,

When I finished the modeling of my Domain Model in the Logical View underneath the Data Model package, I wanted to generate my Java Source Code.

Unfortunately I do not  manage to get the correct 'package be.mycompany.application.model' statement at the beginning of the files. instead I'm getting 'package Data Model;'  at the beginnning of my files.

How can I make sure the correct package is used?

Thanks,
Nico

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Java Forward Engeneering
« Reply #1 on: March 20, 2005, 01:16:20 pm »
Hello Nico,

From your problem description I would guess that all of your classes are in the "Data Model" package.  To create the package statement the way you want you will need to  create new packages "be" and under that "mycompany" and under that "application" and under that "model".  Move all of your classes into that package.

If there are packages that appear in the package statement that you don't want.  Right click on them in the project view and select "Package Control" | "Set as Namespace Root".

Simon