Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Shreyansh Sancheti
    @shreyanshrs44
    Hi Guys, I would like to contribute to this repo. Any good first issues to start with ?
    Per-Åke Minborg
    @minborg
    @shreyanshrs44 Hi! Great that you want to help out! You could check if you could have a look at: speedment/speedment#863
    Check out DbmsOperationHandlerImpl to begin with. You also need to sign the CLA as per https://github.com/speedment/speedment/blob/master/CONTRIBUTING.md
    Shreyansh Sancheti
    @shreyanshrs44
    Thanks @minborg
    Also seems like the CLA aggrement link is broken. You want to have a look once ?
    Per-Åke Minborg
    @minborg
    Clahub appears to be down. Sorry for the inconvenience.
    Shreyansh Sancheti
    @shreyanshrs44
    It appears that Clahub is been down still
    Per-Åke Minborg
    @minborg
    Yes. I see that. You could just cut out the CLA and send me an email with “I AGREE” and your name. minborg at speedment dot com
    extraclassi
    @extraclassi
    hello sorry for the noob question but It seems that no Main.java has been generated otherwise all the database objects are there
    can I provide my class list for you to tell me if my generation is allright ?
    Mislav Miličević
    @dekmm
    Hi @extraclassi, I'll gladly help you with this :) You can send me the list of your generated classes, but before you do, make sure that you have a class named EntryPoint. In newer versions of Speedment, the Main.java file is replaced with the EntryPoint. If your project is called Sakila, then your entry point class should be called SakilaEntryPoint
    Arnab Samanta
    @arnab192
    Hi, is there any mechanism to lock a record internally during update ( WIP) . in other framework they handle it using record version.
    Per-Åke Minborg
    @minborg
    Can you elaborate on the feature please @arnab192 ?
    Arnab Samanta
    @arnab192
    Suppose one user is working with a record , at the same time another user start working with the same record. now 1st user update the record and it has been change in data base. So 2nd user have the old version of record , if 2nd user update something it will remove the previous change which has been made by user one. So is there any mechanism to stop 2nd user to update the record ?
    Per-Åke Minborg
    @minborg
    You can always use transactions to protect your data. In a transaction, you would have to check if someone else updated the record.
    balsundar
    @balsundar
    One basic doubt, i just configured speedment, connected to my postgresql db, and once i click on Generate option i got the necessary files, but i cannot find any files related to the ORM mapping or DML statements like Query to access the tables data and insert into table data like that, plz dont ignore even if it is a entry lvl query, Tnx
    Per-Åke Minborg
    @minborg

    You interact with the database via standard Java Streams (for querrying). Read more here: https://speedment.github.io/speedment-doc/speedment_examples.html#top

    Regarding insert/update: https://speedment.github.io/speedment-doc/crud.html#top

    Hope that helps
    balsundar
    @balsundar
    Thanks, let me try Minborg
    balsundar
    @balsundar
    where to write , in Eclipse or in command prompt
    I ead in the document " Once the files are generated, you are ready to write your first Java Stream query." where i can write those... dont ignore as a tooo basic query
    Per-Åke Minborg
    @minborg
    Hi again. We are only able to give advice on Speedment itself.
    balsundar
    @balsundar
    Yes i read the Speedment document only, to write the first Java Stream query., where to do that? Thanks
    kriegster108
    @kriegster108
    https://speedment.com/hazelcast-initializer/ <<-- the POM.xml is totally broken on this tool
    tried moving version numbers around but cant get it to work
    Per-Åke Minborg
    @minborg
    ok. We will take a look at it and get back.
    Thanks
    kriegster108
    @kriegster108
    Thankyou Sir!
    Julia Gustafsson
    @julgus
    Hi @kriegster108, I cannot replicate the issue you are describing. May I ask you what settings you used in the initializer?
    kriegster108
    @kriegster108
    used defaults @julgus
    Dependency 'com.speedment.enterprise.connectors:oracle-connector:3.2.6' not found
    Dependency 'com.speedment.enterprise.hazelcast:hazelcast-runtime:3.2.6' not found
    kriegster108
    @kriegster108
    Weird, I see it in the repo itself, not sure why maven doesnt see it
    kriegster108
    @kriegster108
    when I plug in 3.1.12, it seems to not complain
    as the version # for these depdencies
    Julia Gustafsson
    @julgus
    Still confused as to why this might be. On my end both dependencies are found without any issues using v. 3.2.6. Could your try using the latest released version - 3.2.10?
    ANKUR PRAMANIK
    @ankurpramanik
    I am new to Speedment, I just created a spring boot application and using speedment:tool I connected to database. My application is working. Now in real world there are different database name in same structure like (development database name as student_dev, Production database name like student_prod) So How can I connect different database after deploying the application as war in tomcat?
    And another problem I am facing with MS SQL server that, speedment tool window is not opening
    Per-Åke Minborg
    @minborg
    In the speedment builder, you can set the dbms name. You can easilly pickup the name using system properties in your app.
    Mark Schrijver
    @ractoc
    I'm currently working on a search page,. which presents me qith some issues on how best to build that in Speedment, as the entire where clause is dynamic
    I have a fleet table, and a registration table.
    the fleet has a start date
    now, when a start date has been provided, I need to filter on this start date. If no start date has been provided, I don't need this filter
    if the boolean registered is set to true, I need to link in the second table to check of the user has registered. If the boolean is set to false, this doesn't need to happen
    in all cases, I only need to return a list of Fleet object
    CUrrently, I have a few of the search params in there
    but I'm not sure I'm doing it right, and I'm not sure how to dynamically link in that second table
    This is what I have now:
    fleetManager.stream()
    .filter(fleet -> params.getStart() == null ||
    !fleet.getStartDateTime().isPresent() ||
    fleet.getStartDateTime()
    .get()
    .toInstant()
    .isAfter(params.getStart().toInstant(ZoneOffset.UTC)))
    .filter(fleet -> params.getEnd() == null ||
    !fleet.getStartDateTime().isPresent() ||
    fleet.getStartDateTime()
    .get()
    .toInstant()
    .isBefore(params.getEnd().toInstant(ZoneOffset.UTC)))
    .filter(fleet -> params.isOwned() && fleet.getOwner() == charId)
    .filter(fleet -> ArrayUtils.isNotEmpty(params.getTypes()) &&
    Arrays.stream(params.getTypes())
    .anyMatch(type -> fleet.getTypeId() == type.getId()));