0

Spring boot 2.0.3 with neo4j.

If I create an entity package name with capital letter like Domain, it gives me an error message like

Class class com.Domain.Student is not a valid entity class

But If I define Entity class with domain, it is working.

Is Capital letter package is not allow only for Entity package ??

wibeasley
  • 5,000
  • 3
  • 34
  • 62

2 Answers2

0

Generally capital letters in package name are not a compatible with Java spec. Why should java package name be lowercase?

piradian
  • 414
  • 7
  • 19
0

Actually, the standard tells you to use the small letters for naming the package. But that's only a standard, not a compilation error. If you give the capital letter in a package the compiler will allow you to use that. example :

    package com.example.demo.Domain;

    public class Student {
      private long id;
    }

So I don't think that is your problem if you provide more code snippets then that will be a good thing to solve it very easily