1. Hibernate UserType and a defined length stackoverflow.comI have a hibernate Usertype something like this:
|
2. Variable length Blob in hibernate? stackoverflow.comI have a byte[] member in one of my persistable classes. Normally, I'd just annotate it with @Lob and @Column(name="foo", size=). In this particular case, however, the length of the byte[] ... |
3. hyperjaxb3 xsd:string length in JPA entity stackoverflow.comI use Hyperjaxb3 to generate JPA entities from XSD schema. I have a xsd:string type that I want to use for description text (text area in the UI):
|
4. hibernate property string length question stackoverflow.comI have an object mapped in hibernate like so:
I'm using an ANT script to generate the database schema ... |
5. Auto-generating unique Strings with limited length in Hibernate coderanch.com |
6. Getting max length of string property from meta model forum.hibernate.org |
7. Zero Length Blobs forum.hibernate.orgI am attempting to resolve an issue with inserting empty blobs. We originally had our blobs mapped to byte[] but when storing a byte[0] hibernate considers this a null and then the insertion fails. We switched to using java.sql.Blob which resolved the problem until we added Apache Derby to the mix. Derby's blobs are only valid till the end of the ... |
8. How to set the length of a UserType column with XDoclet? forum.hibernate.orgI have an object which contains a typesafe enum value that I would like to persist to the database. After searching the forums, using UserType appeared to be the best solution as it avoids putting mapping code in the domain layer. The UserType gets and sets a String that I would like to be a fixed-size CHAR column. The problem is ... |
9. How to persist a String with length>255 in MySQL? forum.hibernate.orgHibernate wants to use Varchar(255) as the type to persist my strings.. but I have a field where the string may be greater than 255 in length. I've read that MySQL can use mediumBlob's to store this kind of stuff, but how do I convert back and forth? I want my POJO to have String as its property type and I ... |
10. MySQL: BLOB column used without a key length forum.hibernate.orgHi, I'm trying this mapping in MySQL which gives an error message when I run SchemaExportTask: |
11. MySQL: BLOB column used without a key length forum.hibernate.orgHi, I'm trying this mapping in MySQL which gives an error message when I run SchemaExportTask: |
12. String length guidance please forum.hibernate.orgHello, Using Hibernate3 & Postgresql8 on Win32. I'm much more of a Java developer than SQL user, so any heuristic guidance is welcome. I notice the default string length in my database is 256 - not 200, 250, 257, 300 etc - but on a "standard binary boundary" of 256. Abviously I'll optimise my string lengths as necessary - but is ... |
13. zero length string vs. null value causes dirty value update forum.hibernate.orgIf a column value is null in the database, the object value gets set to null when the object is initialized. I am using a JSF dataTable to update records via an html form submit. The problem I have is that JSF sets the null value to a zero length string, which causes Hibernate to see the change from a null ... |
14. key-property bigdecimal length setting problem forum.hibernate.orgWell.. what's the problem? I don't actually see anything that needs solving here. What would you like to see, or to have happen? As a matter of interest, if you have scale="0", why are you using BigDecimal? Why not BigInteger? Also, it's usually nicer to use the hibernate names for types, so you could change java.math.BigDecimal to big_decimal (or big_integer, if ... |
15. Dynamic changes for string/text length in existing database forum.hibernate.orgMyproblem is Changing string/text length can be done only initially, not in an existing database. Iam using MSSQL2000.Intailly iam creating string field with length 20.After that i want to increase/decrease my length without affecting existing record. Is it possible to changing length for an existing database also?If it so what about existing records? Iam look forward for your replies |
16. Saving Blob's underlying stream length forum.hibernate.orgHi, I'm saving a Blob in the database, it's all working fantastically. I get a stream from a web service, embed it in a Blob object, then call "save(hibernateObjectWithBlob)". What I would like to be able to do it get the length of the stream/Blob and save it to the database. I figured that I could do this by (all in ... |
17. How to limit String length forum.hibernate.orgYour database field length should also be 10 Hibernate doesn't limit the Field length to the one in the mapping file, but you can analyse the Mappings Files during runtime and do the validation there, you can also create a BeanInfo that has the Information of the POJO, this BeanInfo can validate the POJO then or even the newest Version of ... |
18. UserTypes and the DeepCopy method with Fixed Length CHARS forum.hibernate.org |
19. Oracle / String length > 4000 / issue forum.hibernate.orgHi, I must use a column in an oracle table (9i) for a String from a java bean. Sometimes the string is more than 4000 car long so it's not posible to map this on a VARCHAR2 due to oracle limitations. What is the best practice for this issue ? best reguards Antoine France |
20. Using Annotations w/ UserType (was infers column length) forum.hibernate.orgFound solution here: http://www.hibernate.org/Documentation/ ... 2AndOracle My question is, how do I correctly use Annotations with my userType? I have: @org.hibernate.annotations.Type( type = "persistent.types.FooType" ) @Column(name = "Foo", nullable = false, length = 10) private FooType foo; The logs show that my trim is not happening. and I get: [emmajava] Caused by: org.hibernate.PropertyAccessException: could not set a field value by reflection ... |
21. Invalid text is stored which is > 4000 length in clob fie forum.hibernate.orgIf I try to persist some text with < 4000 char length in nclob column then no issues But I try to persist >4000, invalid chars(like inverted ??) are persisted in DB instead of actual text. I'm using oracle 9i with 10g driver along with spring+hibernate. following are the hibernate settings: |