// Path: spring-data-plain-demo/src/main/java/org/springframework/data/demo/data/DeviceInfo.java
// @Entity
// @org.springframework.data.mongodb.core.mapping.Document
// @Data
// public class DeviceInfo {
//     @NotNull
//     @Indexed(unique = true)
//     @Column(unique = true)
//     private String deviceId;
//     private String deviceName;
//     @Id
//     @com.couchbase.client.java.repository.annotation.Id
//     @GeneratedValue(generator = "system-uuid")
//     @GenericGenerator(name = "system-uuid", strategy = "uuid2")
//     private String id;
// }


import org.springframework.data.couchbase.core.query.N1qlPrimaryIndexed;
import org.springframework.data.couchbase.core.query.N1qlSecondaryIndexed;
import org.springframework.data.couchbase.core.query.ViewIndexed;
import org.springframework.data.couchbase.repository.CouchbaseRepository;
import org.springframework.data.demo.data.DeviceInfo;
package org.springframework.data.demo.repository;


@N1qlPrimaryIndexed
@ViewIndexed(designDoc = "deviceInfo")
public interface DeviceInfoRepository extends CouchbaseRepository<DeviceInfo, String> {
// Path: spring-data-plain-demo/src/main/java/org/springframework/data/demo/data/DeviceInfo.java
// @Entity
// @org.springframework.data.mongodb.core.mapping.Document
// @Data
// public class DeviceInfo {
//     @NotNull
//     @Indexed(unique = true)
//     @Column(unique = true)
//     private String deviceId;
//     private String deviceName;
//     @Id
//     @com.couchbase.client.java.repository.annotation.Id
//     @GeneratedValue(generator = "system-uuid")
//     @GenericGenerator(name = "system-uuid", strategy = "uuid2")
//     private String id;
// }


// Path: spring-data-couchbase-demo/src/main/java/org/springframework/data/demo/repository/DeviceInfoRepository.java
import org.springframework.data.couchbase.core.query.N1qlPrimaryIndexed;
import org.springframework.data.couchbase.core.query.N1qlSecondaryIndexed;
import org.springframework.data.couchbase.core.query.ViewIndexed;
import org.springframework.data.couchbase.repository.CouchbaseRepository;
import org.springframework.data.demo.data.DeviceInfo;

package org.springframework.data.demo.repository;


@N1qlPrimaryIndexed
@ViewIndexed(designDoc = "deviceInfo")
public interface DeviceInfoRepository extends CouchbaseRepository<DeviceInfo, String> {
	DeviceInfo findByDeviceId(String deviceId);