Skip to content

GRAILS-11498: findOrCreate saved the instance and return instance with id - Please close this #2081

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
graemerocher opened this issue Jun 11, 2014 · 0 comments

Comments

@graemerocher
Copy link
Contributor

Original Reporter: wallacetan
Environment: Not Specified
Version: 2.4
Migrated From: http://jira.grails.org/browse/GRAILS-11498

  • Please close this --

When the code called findOrCreateBy, it saved instance into DB and return instance with id.

Hibernate:

runtime ':hibernate:3.6.10.15'

Log ( the app fired the insert sql, which should not be fired)

2014-06-12 15:59:14,944 [main] ERROR util.JDBCExceptionReporter - NULL not allowed for column "DATE_CREATED"; SQL statement:
insert into item (version, call_connect_code, comments, condition, date_created, description, inspection_report, item_status, last_updated, location_id, lock_item, lock_for_batch, network_id, newman_id, original_comments, primary_colour_generic_name, pri_colour_manufacturer_name, ref_key, sales_method, seller_id, source, source_id, spot_ref_id, stock_number, top_deal, id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [23502-173]
Error |

jdaugherty pushed a commit that referenced this issue Apr 22, 2025
Turn on functional tests with new Apache coordinates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant