package com.justjournal.config;

import com.justjournal.model.*;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.rest.core.config.RepositoryRestConfiguration;
import org.springframework.data.rest.webmvc.config.RepositoryRestMvcConfiguration;

/**
 * Expose ids for some classes
 * @author Lucas Holt
 */
@Configuration
public class JustJournalRepositoryRestConfiguration extends RepositoryRestMvcConfiguration {

    /** {@inheritDoc} */
    @Override
    protected void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) {
        super.configureRepositoryRestConfiguration(config);

        config.exposeIdsFor(Comment.class);
        config.exposeIdsFor(Entry.class);
        config.exposeIdsFor(Mood.class);
        config.exposeIdsFor(Location.class);
        config.exposeIdsFor(Security.class);

    }
}
@@ -258,35 +258,32 @@
 positoryRest
-Mvc
 Configur
 ation;%0A%0A/**%0A
@@ -270,21 +270,25 @@
 Configur
-ation
+erAdapter
 ;%0A%0A/**%0A 
@@ -317,16 +317,19 @@
 classes%0A
+ *%0A
  * @auth
@@ -439,19 +439,16 @@
 Rest
-Mvc
 Configur
 atio
@@ -447,41 +447,20 @@
 igur
-ation %7B%0A%0A    /** %7B@inheritDoc%7D */
+erAdapter %7B%0A
 %0A   
@@ -479,16 +479,13 @@
    p
-rotected
+ublic
  voi
@@ -565,269 +565,93 @@
 ) %7B%0A
-        super.configureRepositoryRestConfiguration(config);%0A%0A        config.exposeIdsFor(Comment.class);%0A        config.exposeIdsFor(Entry.class);%0A        config.exposeIdsFor(Mood.class);%0A        config.exposeIdsFor(Location.class);%0A        config.exposeIdsFor(
+%0A        config.exposeIdsFor(Comment.class, Entry.class, Mood.class, Location.class, 
 Secu
@@ -663,16 +663,15 @@
 class);%0A
-%0A
     %7D%0A%7D

switch to modern version so we don't get deprecated warnings