Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000026 [Resin] minor always 03-09-05 00:00 05-11-05 00:00
Reporter dicr View Status public  
Assigned To
Priority high Resolution fixed  
Status closed   Product Version
Summary 0000026: EJB30: ignoring nullable property in JoinColumn
Description RSN-17
Code:
    @ManyToOne(cascade = {CascadeType.CREATE, CascadeType.REMOVE})
    @JoinColumn(name = "customerGroup", referencedColumnName = "id", nullable = false)
    protected CustomerGroup customerGroup;

produce sql definition of column:
    customerGroup BIGINT

but no 'NOT NULL' added in column definition, beacase nullable = false option
This is critical.

And for example code:
    @Basic
    @Column(name="name", nullable = false, unique = true)
    protected String name;

produce fine and right SQL definition of column:
  name VARCHAR(255) NOT NULL UNIQUE

This is Ok.



Additional Information Linux 2.6.10-1.770asp i686 GNU/Linux
Resin-3.0.11
MySQL-3.23.58-14
Attached Files

- Relationships

- Notes
(0000032)
ferg
03-09-05 00:00

ejb/0h21, ejb/0h22
 

- Issue History
Date Modified Username Field Change
03-09-05 00:00 dicr New Issue
11-01-05 00:00 administrator Fixed in Version  => 3.0.14


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
27 unique queries executed.
Powered by Mantis Bugtracker