Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

spring data rest id missing

@Configuration
public class ExposeEntityIdRestConfiguration extends RepositoryRestMvcConfiguration {

    @Override
    protected void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) {
      //add this line to your configuration by default the id is hidden
      //in spring data rest
      config.exposeIdsFor(YourClass.class);
    }
}
Comment

PREVIOUS NEXT
Code Example
Java :: java t point c# 
Java :: os compatible java path separator 
Java :: banner generator spring boot 
Java :: how to set up basic java workspace 
Java :: how to getobject from id in controlp5 
Java :: android studio setbackgroundcolor drawable 
Java :: Jax-RS path annotation 
Java :: spinner android add underline like edittext 
Java :: Creating strings using the new keyword Java 
Java :: split the argument String and add the tokens into a list 
Java :: jlabel text grösse 
Java :: javadoc generate docs for files in folder and subfolders 
Java :: sfadffocusbutton 
Java :: how to come from 2nd fragment to first fragment android 
Java :: java.lang.noclassdeffounderror even though class is present 
Java :: implement hashmap 
Java :: create and populate list one line java 
Java :: java load config file 
Java :: react-native maven package 404 not found 
Java :: who was the mother of thomas elva edison 
Java :: java backtracking 
Java :: IMEI DEVISE ANDROID JAVA 
Java :: dividing numbers using method 
Java :: springboot getting body value 
Java :: reading data from wsdl in java 
Java :: Sample TreeMap 
Java :: dynamically create textview and add it in linearlayout in recyclerview adapter android 
Java :: java ordenar los valores de un array de menor a mayor 
Java :: sudo visudo quit without saving 
Java :: java active displays 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =