1. [Stripes + Hibernate] question on db fields type coderanch.comThank you for your reply Aaron. Yes, I'm using Stripersist for the integration with Hibernate. So, if I understood, I have to use some specific annotations to define the type of database field I want get from Hibernate. Right? I'm sorry if I posted the question in the wrong forum, I'm totally new to Hibernate. Thank you again, I'll try your ... |
2. Query on hibernate entity with user-type field coderanch.comHey, working with JPA above hibernate impl. I map my enums by using user-type follow the good practice to store a persistence key to the enum and not the ordinal (which can be changed). Now, i have a problem to query on the enum field. it seems that hibernate dont execute the user type convert on the name-query. Any idea? |
3. Determine type of one field, based on value of other field forum.hibernate.orgNewbie Joined: Mon Feb 08, 2010 10:42 am Posts: 1 Dear fellow user, The question I have might be related to this other posting ( https://forum.hibernate.org/viewtopic.php?f=1&t=1000211 ). The question was never answered there, so I will try to formulate it a bit differently and share the code I wrote in an attempt to find a solution myself. I think the bottomline ... |
4. How to obtain field types programmatically? forum.hibernate.org |
5. flush causes update on field of type @Lob/Byte[] in 3.6.0 forum.hibernate.orgWe're encountering an issue with Hibernate 3.6.0-Final. I've created a bug report, but since it's the holidays and it hasn't been picked up, I was wondering if anyone here experienced the same issue and possible has a workaround? Here is the issue, pasted verbatim: =================================== I have a field that is mapped as follows: @Lob @Column(name = "picture") private Byte[] picture; ... |
6. Multi-Type Field forum.hibernate.org |
7. Reverse Engineering generates wrong field types forum.hibernate.orgNewbie Joined: Sat Aug 20, 2011 1:50 pm Posts: 5 I use Eclipse Indigo with plugin Hibernate Tools (JBoss by red hat) for database connection I use Microsoft SQL Server 2008 JDBC Driver. When I try to use Reverse Engineering tool (hibernate code generation configuration tool) to generate class based on database table, instead of fields with type of "string" I ... |
8. Dto to Entity checkbox type field help needed forum.hibernate.orgI am very new to Hibernate and Java, we are converting our system from RPG based to Java based. What i need help with is taking a checkbox field from the screen, and putting the value into the char field of the file. The software package we are using has the command copyDtoToEntity and copyEntityToDto. The entity has the field as ... |
9. primitive type VS object of the key field forum.hibernate.orgWhen some of the fields in the object is nullable, it should not be in primitive type but in object type, like Long instead of long. I generate a dataobject with key in long type, and being "assigned", as the following |
10. null database fields and primitive types forum.hibernate.orgDoes the potential feature sound useful? Making a custom UserType to handle all the primitives and mapping them into all my value objects seems cumbersome. I would be willing to develope this, but would need a bit of guidence as to the best place to put this. I personally hate nulls in the database, but there are situations where they are ... |
11. many-to-one field types as proxy forum.hibernate.orgHello everyone, I tried to solve my problem myself, read the documentation, google, and forums whatever. But if I make a duplicate entry sorry for wasting your time. I m using hibernate 2.1. I made a quite big(~50 classes) model for my bookstore. Some big classes have proxy interfaces for cglib lazy initialization. (which is addvised.) Now I m confused that ... |
12. custom type problem for id field forum.hibernate.orgi am having a problem for making my id field as oof custom type. i have been able to make my non-id fields as of custom type say a long field in DB as of Money type using UserType . is the same possible for id field as well , say i want to make my id long field to apppear ... |
13. SQL Server 2000 nvarchar field type forum.hibernate.orgI am actually using jTDS (0.9 in fact), and it doesn't appear to be doing this. Am I just missing a config option? I'm not using the charset property in the connection URL because the FAQ suggests I shouldn't need it. Also, this wouldn't appear to account for the case where I create new objects which contain String properties, and save ... |
14. how to avoid typing explicit field path in HQL queries? forum.hibernate.orgHi, when I write HQL queries, I always have to type the property names explicitly, something like from Person person where person.age = 30 if I want to change the name of the age property, I have to change it in the HQL string as well. (Actually when I create HQL strings I use some home made dictionary for getting the ... |
15. Access type - field forum.hibernate.orgHello. In my project I use Hibernate Annotations 3.3.0.GA and property access type. I'd like in one case use field access type. I write before getter method: @AccessType("field") @Column(name = "NAZWA", nullable = false, length = 50) public Integer getWydNazwa() { return Integer.valueOf(wydNazwa) * 100; } but HB during persist call getWydNazwa() to get value. I was trying move @AccessType("field") before ... |