// Path: src/main/java/fm/last/musicbrainz/data/model/ReleaseGroupPrimaryType.java
// public enum ReleaseGroupPrimaryType {
//   /* */
//   ALBUM(1, "Album"),
//   /* */
//   SINGLE(2, "Single"),
//   /* */
//   EP(3, "EP"),
//   /* */
//   OTHER(11, "Other"),
//   /* */
//   BROADCAST(12, "Broadcast"),
//   /* */
//   UNDEFINED(null, null);
// 
//   private static final Map<Integer, ReleaseGroupPrimaryType> idToType;
// 
//   static {
//     idToType = Maps.newHashMap();
//     for (ReleaseGroupPrimaryType value : values()) {
//       idToType.put(value.getId(), value);
//     }
//   }
// 
//   private final Integer id;
//   private final String name;
// 
//   private ReleaseGroupPrimaryType(Integer id, String name) {
//     this.id = id;
//     this.name = name;
//   }
// 
//   public static ReleaseGroupPrimaryType valueOf(Integer id) {
//     ReleaseGroupPrimaryType type = idToType.get(id);
//     if (type == null) {
//       throw new IllegalArgumentException("Unrecognized release group primary type: " + id);
//     }
//     return type;
//   }
// 
//   public Integer getId() {
//     return id;
//   }
// 
//   public String getName() {
//     return name;
//   }
// 
// }


import fm.last.musicbrainz.data.model.ReleaseGroupPrimaryType;
/*
 * Copyright 2013 The musicbrainz-data Authors
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package fm.last.musicbrainz.data.hibernate;


public class ReleaseGroupPrimaryTypeUserType extends AbstractEnumUserType<ReleaseGroupPrimaryType> {

  public ReleaseGroupPrimaryTypeUserType() {
// Path: src/main/java/fm/last/musicbrainz/data/model/ReleaseGroupPrimaryType.java
// public enum ReleaseGroupPrimaryType {
//   /* */
//   ALBUM(1, "Album"),
//   /* */
//   SINGLE(2, "Single"),
//   /* */
//   EP(3, "EP"),
//   /* */
//   OTHER(11, "Other"),
//   /* */
//   BROADCAST(12, "Broadcast"),
//   /* */
//   UNDEFINED(null, null);
// 
//   private static final Map<Integer, ReleaseGroupPrimaryType> idToType;
// 
//   static {
//     idToType = Maps.newHashMap();
//     for (ReleaseGroupPrimaryType value : values()) {
//       idToType.put(value.getId(), value);
//     }
//   }
// 
//   private final Integer id;
//   private final String name;
// 
//   private ReleaseGroupPrimaryType(Integer id, String name) {
//     this.id = id;
//     this.name = name;
//   }
// 
//   public static ReleaseGroupPrimaryType valueOf(Integer id) {
//     ReleaseGroupPrimaryType type = idToType.get(id);
//     if (type == null) {
//       throw new IllegalArgumentException("Unrecognized release group primary type: " + id);
//     }
//     return type;
//   }
// 
//   public Integer getId() {
//     return id;
//   }
// 
//   public String getName() {
//     return name;
//   }
// 
// }


// Path: src/main/java/fm/last/musicbrainz/data/hibernate/ReleaseGroupPrimaryTypeUserType.java
import fm.last.musicbrainz.data.model.ReleaseGroupPrimaryType;

/*
 * Copyright 2013 The musicbrainz-data Authors
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package fm.last.musicbrainz.data.hibernate;


public class ReleaseGroupPrimaryTypeUserType extends AbstractEnumUserType<ReleaseGroupPrimaryType> {

  public ReleaseGroupPrimaryTypeUserType() {
    super(ReleaseGroupPrimaryType.class);