Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @XmlAccessorType(XmlAccessType.FIELD)
- @XmlType(name = "SomeType")
- public class SomeType {
- @XmlAttribute(name = "Name")
- protected String name;
- }
- public interface SomeTypeRepository extends CrudRepository<SomeType, Long> {
- SomeOtherType findByName(String name);
- }
- @Entity
- public class SomeOtherType extends SomeType{
- @Id
- @GeneratedValue(strategy = GenerationType.AUTO)
- private Long id;
- }
- @Entity
- public class SomeOtherType extends SomeType{
- @Id
- @GeneratedValue(strategy = GenerationType.AUTO)
- private Long id;
- protected String name;
- }
Add Comment
Please, Sign In to add comment