Ramses

Caracas, Venezuela

Age: 33

I'm a Software engineer from Venezuela. with experience in languages like Java, PHP, Ruby, Javascript and C# .NET. Love open source, but firm believer of "right tool for the right job". Currently working on a research project involving Semantic Web and SPARQL endpoints

Oct
2
asked HIbernate XML Mapping: Composite Key with autoincrement
Oct
2
comment org.hibernate.NonUniqueObjectException when saving a list of child objects
Now that you point this out, seems obvious, thanks. The problem is that the field idPlayers is an autoincrement field, part of the composite key of SubDisciplinePlayers. How can I modify the mapping to reflect this?
Oct
1
accepted org.hibernate.NonUniqueObjectException when saving a list of child objects
Oct
1
awarded Student
Oct
1
asked How to get the Bullseye achievement?
Oct
1
awarded Autobiographer
Oct
1
asked org.hibernate.NonUniqueObjectException when saving a list of child objects
Sep
30
comment Hibernate Error: org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session
In my case there are many objects with the same identifier 0, because they are new and don't have one. The db generates them. Somewhere I have read that 0 signals Id not set. The intuitive way to persist them is iterating over them and saying hibernate to save the objects. I need to do exactly this. Could you tell me which is the "hibernate way" to do this?
Sep
24
awarded Autobiographer
Sep
24
awarded Autobiographer
Sep
24
awarded Autobiographer
Aug
6
comment Access JBoss 7.1.1.Final using IP address
What is an appropiate configuration for a production environment?
Jul
29
comment How can I get the diff between all the commits that occured between two dates with Git?
@brbob I know this was answered a long time ago, but just for someone who stumbles upon this (as I did) Git help says: The command is kept primarily for historical reasons; fingers of many people who learned Git long before git log was invented by reading Linux kernel mailing list are trained to type it. So, the docs encourages using git log instead of git whatchanged; this last command also uses the --no-merge option of git log, so they output the same results.
Jan
14
answered What's wrong with my query debscribed below?
Jan
14
awarded Informed
Nov
15
comment how to copy derby table
you missed 'table' before table2 in the create statement. It should read: create table table2 as select * from table1 with no data;
Oct
30
answered NoMethodError Railscast 250 - Rails 4
Feb
26
awarded Popular Question
Nov
26
answered Devise + OmniAuth - How to capture a FB Connect on registration
Nov
14
comment Devise: Sign-in fails, how to debug?
I had the exact same problem, only that I didn't have the attr_accessor :password line. In my case, the problem was caused because I had a before_save :encrypt_password, so I was encrypting the password twice. I'm leaving it here in case that anyone runs into the same problem
1 2 3 4