// Path: metacat-metadata/src/main/java/com/netflix/metacat/metadata/store/data/entities/DataMetadataEntity.java
// @Entity
// @Getter
// @Setter
// @SuperBuilder
// @NoArgsConstructor
// @AllArgsConstructor
// @ToString(of = {
//     "uri"
// })
// @Table(name = "data_metadata")
// public class DataMetadataEntity extends BaseUserMetadataEntity {
// 
//     @Basic
//     @Column(name = "uri", nullable = false, unique = true)
//     private String uri;
// }


import com.netflix.metacat.metadata.store.data.entities.DataMetadataEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.Optional;
package com.netflix.metacat.metadata.store.data.repositories;



/**
 * The data metadata entity repository.
 *
 * @author rveeramacheneni
 */
@Repository
public interface DataMetadataRepository extends JpaRepository<DataMetadataEntity, String> {
    /**
     * Find a data metadata entity using the given uri.
     *
     * @param uri The uri of the entity.
     * @return The data metadata entity.
     */
// Path: metacat-metadata/src/main/java/com/netflix/metacat/metadata/store/data/entities/DataMetadataEntity.java
// @Entity
// @Getter
// @Setter
// @SuperBuilder
// @NoArgsConstructor
// @AllArgsConstructor
// @ToString(of = {
//     "uri"
// })
// @Table(name = "data_metadata")
// public class DataMetadataEntity extends BaseUserMetadataEntity {
// 
//     @Basic
//     @Column(name = "uri", nullable = false, unique = true)
//     private String uri;
// }


// Path: metacat-metadata/src/main/java/com/netflix/metacat/metadata/store/data/repositories/DataMetadataRepository.java
import com.netflix.metacat.metadata.store.data.entities.DataMetadataEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.Optional;

package com.netflix.metacat.metadata.store.data.repositories;



/**
 * The data metadata entity repository.
 *
 * @author rveeramacheneni
 */
@Repository
public interface DataMetadataRepository extends JpaRepository<DataMetadataEntity, String> {
    /**
     * Find a data metadata entity using the given uri.
     *
     * @param uri The uri of the entity.
     * @return The data metadata entity.
     */
    Optional<DataMetadataEntity> findByUri(String uri);