Project

General

Profile

Anomalie #1101

Crash if attributs has no @

Added by Mickael G. about 7 years ago. Updated almost 7 years ago.

Status:
Fermé
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
11/14/2012
Due date:
% Done:

100%

Estimated time:

Description

with :

import com.tactfactory.mda.orm.annotation.*;

@Table
@Entity
public class People {
    @Id
    @Column()     // type="integer",
    @GeneratedValue(strategy="IDENTITY")
    protected int id;

    private String name;
}

ORM Generator

Analyse Models...

Entity: com.tactfactory.mda.test.demact.entity.People
ID: id
Column: id type of int
Exception in thread "main" java.lang.NullPointerException
at com.tactfactory.mda.orm.JavaAdapter$FieldVisitor.visit(JavaAdapter.java:86)
at com.tactfactory.mda.orm.JavaAdapter$FieldVisitor.visit(JavaAdapter.java:78)
at japa.parser.ast.body.FieldDeclaration.accept(FieldDeclaration.java:80)
at japa.parser.ast.visitor.VoidVisitorAdapter.visit(VoidVisitorAdapter.java:248)
at japa.parser.ast.body.ClassOrInterfaceDeclaration.accept(ClassOrInterfaceDeclaration.java:76)
at japa.parser.ast.visitor.VoidVisitorAdapter.visit(VoidVisitorAdapter.java:275)
at com.tactfactory.mda.orm.JavaAdapter.parse(JavaAdapter.java:51)
at com.tactfactory.mda.command.OrmCommand.generateEntities(OrmCommand.java:137)
at com.tactfactory.mda.command.OrmCommand.execute(OrmCommand.java:199)
at com.tactfactory.mda.Harmony.findAndExecute(Harmony.java:154)
at com.tactfactory.mda.Console.main(Console.java:86)

Recurrences


Related issues

Related to Harmony - Anomalie #1195: Check @entity annotationFermé2012-12-05

History

#4Updated by Mickael G. about 7 years ago

Appliqué par commit commit:2306f57f2307e7685feaab04377174de20cf2a37.

Also available in: Atom PDF

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