If I remove the last relationship, the import works. I also had to change "Clob" to "Blob". I tried changing the last relationship to the following:
relationship ManyToMany {
Entry to Tag{name}
}
But I still get the same error.
I tried looking at the examples and using the following instead.
relationship ManyToMany {
Entry{tag} to Tag{entry}
}
This seemed to work, but when I started the app, I got the following error:
Caused by: org.h2.jdbc.JdbcSQLException: Table "TAG" not found; SQL statement:
ALTER TABLE PUBLIC.entry_tag ADD CONSTRAINT fk_entry_tag_entry_id FOREIGN KEY (tags_id) REFERENCES PUBLIC.tag (id) [42102-191]
I figured this might be because I have "entity Entry" before "entity Tag" and I remember having to generate Tag before Entry when using the entity sub-generator. So I started with a clean project and tried again. This time, startup worked.
However, it looks like something might be broken with bower because I don't have any Bootstrap CSS or AngularJS in my index.html.
The normally populated vendor files are blank.
<!-- build:css content/css/vendor.css -->
<!-- bower:css -->
<!-- endbower -->
<!-- endbuild -->
<!-- build:js app/vendor.js -->
<!-- bower:js -->
<!-- endbower -->
<!-- endbuild -->
After some investigation, it seems that running "./gradlew" on its own isn't enough to get the files injected into index.html. When I ran "gulp", it injected them. Is this a bug? It seems like you should be able to just run "./gradlew" after creating a new project and have it all working. At least that's the way it used to work.
[BS] Serving files from: src/main/webapp/
[11:37:28] gulp-inject 118 files into index.html.
[11:37:28] Finished 'inject' after 324 ms
Thanks,
Matt