Project

General

Profile

Anomalie #10205

Incorrect namespace

Added by Yoan P. almost 3 years ago. Updated 4 months ago.

Status:
Fermé
Priority:
Normal
Assignee:
Category:
Core
Target version:
Start date:
01/05/2017
Due date:
% Done:

100%

Estimated time:

Description

If you forget @entity annotation, package name and some import paths do not generate correctly.


Recurrences

History

#2Updated by Jérôme A. almost 3 years ago

Tested on v0.8, seems not reproducible.

#3Updated by Jérôme A. over 2 years ago

git diff withoutEntityAnnotation..withoutEntityAtAll

diff --git a/src/com/tactfactory/demact/entity/Entity.java b/src/com/tactfactory/demact/entity/Entity.java
deleted file mode 100644
index edda200..0000000
--- a/src/com/tactfactory/demact/entity/Entity.java
+++ /dev/null
@@ -1,14 +0,0 @@
-package com.tactfactory.demact.entity;
-
-import com.tactfactory.harmony.annotation.*;
-
-public class Entity {
-
-    @Id
-    @Column(type = Column.Type.INTEGER)
-    @GeneratedValue(strategy = GeneratedValue.Strategy.MODE_IDENTITY)
-    private int id;
-
-    @Column(type = Column.Type.STRING)
-    private String name;
-}

So only generic classes and utils are generated in both cases

Also available in: Atom PDF

Go to top
Add picture from clipboard (Maximum size: 200 MB)