Hibernate
EJB3NamingStrategy vs ImprovedNamingStrategy Foreign Key Naming
My naming strategy in hibernate was the default one : EJB3Naming开发者_如何学CStrategy. So the field and table names was in camelcase. I switched it to ImprovedNamingStrategy to have snakecase.[详细]
2023-04-11 17:24 分类:问答Date literals in Hibernate
I wonder how to use date literals in Hibernate query language. I did as follows in my JPA project (as Eclipselink the provider) and it works.[详细]
2023-04-11 17:09 分类:问答where to get hibernate jars from?
开发者_如何学运维i dont know how many of you noticed http://repository.jboss.org/maven2 is down. where are you getting your jars from now?[详细]
2023-04-11 17:09 分类:问答Issue with maven ant plugin for generating hbm files in hibernate using Xdoclet
I am trying to generate hbm files using ant task with maven, however it\'s running into issues related to classpath. (I am doing this to migrate the project from ant to maven and do not want to change[详细]
2023-04-11 15:38 分类:问答Grails - composite key class usage
I\'ve recently changed some mapping in my app and now it looks like this. Scenario - many-to-many - Subscription[详细]
2023-04-11 15:26 分类:问答Hibernate :: Combine Column values
how to combine column values on hibernate? for example: Ci开发者_开发问答ty ------- texas california[详细]
2023-04-11 15:07 分类:问答Grails eager fetch with scrolling
I am trying to scroll through a result set of a namedQuery. To avoid N=1 problem i set fetch param to eager. I am also interested in distinct set of top level objects. So my controller closure looks l[详细]
2023-04-11 15:03 分类:问答How do I get count of what would be returned by Hibernate query object?
I have a chunk of code that gets handed an arbitrary org.hibernate.Query object. This query is not a \'count\' query. How do I get the number of items that would be returned fr开发者_Python百科om that[详细]
2023-04-11 14:18 分类:问答What impact does the @embedded annotation mean?
How does the Embedded annotation affect the database? How will SQL queries need to change? What\'s the typical usecase for开发者_运维问答 using the annotation?[详细]
2023-04-11 12:59 分类:问答Large SQL dataset query using java
I have the following configuration: SQL Server 2008 Java as backend technology - Spring + Hibernate Basically what I want to do is a select with a where clause on a table. The problem is the tabl[详细]
2023-04-11 12:32 分类:问答