hibernate-annotations
Retrieve Collection of Subclasses Based on Column Value
The title is a bit weird, so let me clarify. I have two objects, Garage and Vehicle, in a one-to-many relationship.There are multiple types of vehicles, such as car and truck; the type is persisted a[详细]
2023-01-24 05:29 分类:问答Return Map<Key, Value> with condition in Hibernate Annotation
I have a table with the following columns: id, target (string), audience_group_id, rating (Integer), job_id[详细]
2023-01-23 16:55 分类:问答mappedBy reference an unknown target entity property
I am having an issue in setting up a one to many relationship in my annotated object. I have the following:[详细]
2023-01-21 14:16 分类:问答Hibernate: Add a property in my class that is not mapped to a db-table
I have a table tbl_sky that has 2 properties name and model and I would use Hibernate annotation like;[详细]
2023-01-21 12:48 分类:问答Maven + Hibernate annotations schema generation
I have a bunch of classes annotated with hibernate annotations. I\'m using Maven, Hibernate and Spring. How can I generated the DB schema using hibernate3-mave开发者_如何学Cn-plugin\'s hbm2ddl?a short[详细]
2023-01-21 08:17 分类:问答How to map a Map<String,Double>
I tried @ManyToMany(cascade = CascadeType.ALL) Map<String, Double> data = new HashMap<String, Double>();[详细]
2023-01-19 17:03 分类:问答Map two entities using a shared foreign key column in hibernate
I have four entities to map together, \"Association\", \"Account\", \"Transaction\" and \"TransactionEvent\". The id of Association is a simple integer id. Account and Transaction each have embedded i[详细]
2023-01-17 09:23 分类:问答Hibernate - OneToMany - Several Columns
I have those 2 tables Teacher and Contact, a teacher can have x Contacts. So here we are looking at a @OneToMany association.[详细]
2023-01-16 20:04 分类:问答map default column value with annotations
@Entity @Table(name = \"J_CNTRY\") public class CountryEntity { @Id @GeneratedValue(strategy = GenerationType.TABLE, generator = \"myTableGenerator\")[详细]
2023-01-15 16:06 分类:问答Why does Hibernate throw exception "java.lang.NoSuchMethodError: javax.persistence.UniqueConstraint.name()"?
Why does the UniqueConstraint annotation in the following H开发者_高级运维ibernate mapping declaration cause the exception java.lang.NoSuchMethodError: javax.persistence.UniqueConstraint.name() (see b[详细]
2023-01-14 20:05 分类:问答