// Path: friendly-id-samples/friendly-id-spring-boot-hateos/src/main/java/com/devskiller/friendly_id/sample/hateos/domain/Bar.java
// @Data
// @AllArgsConstructor
// public class Bar {
// 
// 	private UUID id;
// 	private String name;
// 
// 	private Foo foo;
// 
// }
// 
// Path: friendly-id-samples/friendly-id-spring-boot-hateos/src/main/java/com/devskiller/friendly_id/sample/hateos/domain/Foo.java
// @Data
// @AllArgsConstructor
// public class Foo {
// 
// 	private UUID id;
// 	private String name;
// 
// }
// 
// Path: friendly-id/src/main/java/com/devskiller/friendly_id/FriendlyId.java
// public static String toFriendlyId(UUID uuid) {
// 	return Url62.encode(uuid);
// }


import com.devskiller.friendly_id.sample.hateos.domain.Bar;
import com.devskiller.friendly_id.sample.hateos.domain.Foo;
import org.springframework.hateoas.CollectionModel;
import org.springframework.hateoas.server.mvc.RepresentationModelAssemblerSupport;
import org.springframework.hateoas.server.mvc.WebMvcLinkBuilderFactory;
import java.util.Arrays;
import java.util.List;
import java.util.UUID;
import static com.devskiller.friendly_id.FriendlyId.toFriendlyId;
package com.devskiller.friendly_id.sample.hateos;




public class FooResourceAssembler extends RepresentationModelAssemblerSupport<Foo, FooResource> {

	public FooResourceAssembler() {
		super(FooController.class, FooResource.class);
	}

	@Override
// Path: friendly-id-samples/friendly-id-spring-boot-hateos/src/main/java/com/devskiller/friendly_id/sample/hateos/domain/Bar.java
// @Data
// @AllArgsConstructor
// public class Bar {
// 
// 	private UUID id;
// 	private String name;
// 
// 	private Foo foo;
// 
// }
// 
// Path: friendly-id-samples/friendly-id-spring-boot-hateos/src/main/java/com/devskiller/friendly_id/sample/hateos/domain/Foo.java
// @Data
// @AllArgsConstructor
// public class Foo {
// 
// 	private UUID id;
// 	private String name;
// 
// }
// 
// Path: friendly-id/src/main/java/com/devskiller/friendly_id/FriendlyId.java
// public static String toFriendlyId(UUID uuid) {
// 	return Url62.encode(uuid);
// }


// Path: friendly-id-samples/friendly-id-spring-boot-hateos/src/main/java/com/devskiller/friendly_id/sample/hateos/FooResourceAssembler.java
import com.devskiller.friendly_id.sample.hateos.domain.Bar;
import com.devskiller.friendly_id.sample.hateos.domain.Foo;
import org.springframework.hateoas.CollectionModel;
import org.springframework.hateoas.server.mvc.RepresentationModelAssemblerSupport;
import org.springframework.hateoas.server.mvc.WebMvcLinkBuilderFactory;
import java.util.Arrays;
import java.util.List;
import java.util.UUID;
import static com.devskiller.friendly_id.FriendlyId.toFriendlyId;

package com.devskiller.friendly_id.sample.hateos;




public class FooResourceAssembler extends RepresentationModelAssemblerSupport<Foo, FooResource> {

	public FooResourceAssembler() {
		super(FooController.class, FooResource.class);
	}

	@Override
	public FooResource toModel(Foo entity) {