Skip to content
Snippets Groups Projects
Commit fd2eab04 authored by Nicolas.Rod's avatar Nicolas.Rod
Browse files

fix(Label): set text and language as not nullable in database

parent eaf2caa9
No related branches found
No related tags found
No related merge requests found
......@@ -9,12 +9,12 @@
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 2 of the
* License, or (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/gpl-2.0.html>.
......@@ -40,12 +40,12 @@ public class Label implements EmbeddableEntity {
@NotNull
@Size(max = SolidifyConstants.DB_LONG_STRING_LENGTH)
@Column(length = SolidifyConstants.DB_LONG_STRING_LENGTH)
@Column(length = SolidifyConstants.DB_LONG_STRING_LENGTH, nullable = false)
private String text;
@NotNull
@ManyToOne
@JoinColumn(name = SolidifyConstants.DB_LANGUAGE_ID, referencedColumnName = SolidifyConstants.DB_RES_ID)
@JoinColumn(name = SolidifyConstants.DB_LANGUAGE_ID, referencedColumnName = SolidifyConstants.DB_RES_ID, nullable = false)
private Language language;
public String getText() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment